# Footer

A footer bar for actions, pinned to the bottom of a page or panel.

Tabs: [Guidelines](/components/web/footer/footer.guidelines.md) · [Code](/components/web/footer/footer.code.md)

## Basic usage

First, import the component.

```tsx
import {Footer} from '@pleo-io/telescope'
```

Then use it with buttons for the actions:

```tsx
import {Button, Footer} from '@pleo-io/telescope'
;<Footer>
    <Button variant="secondary">Back</Button>
    <Button variant="primary">Next</Button>
</Footer>
```

See the [API reference](https://telescope.pleo.io/components/web/footer/footer.code#api-reference) for all props and [Guidelines](https://telescope.pleo.io/components/web/footer/footer.guidelines) for usage guidance.

***

## Examples

### With details

Pass `details` to show left-aligned content next to right-aligned actions. `details` and `align` are mutually exclusive in `FooterProps`.

```tsx
import {Button, Footer, Text} from '@pleo-io/telescope'
;<Footer details={<Text variant="label-m">2 selected</Text>}>
    <Button variant="secondary">Back</Button>
    <Button variant="primary">Next</Button>
</Footer>
```

### Aligned actions

Without `details`, `align` accepts `left`, `center` (the default) or `right`.

```tsx
import {Button, Footer} from '@pleo-io/telescope'
;<Footer align="left">
    <Button variant="secondary">Back</Button>
    <Button variant="primary">Next</Button>
</Footer>
```

### Sticky positioning

Set `sticky` to use `position: sticky` at the bottom of the nearest scrolling ancestor. It is `false` by default.

```tsx
import {Button, Footer} from '@pleo-io/telescope'
;<Footer sticky>
    <Button variant="secondary">Back</Button>
    <Button variant="primary">Next</Button>
</Footer>
```

## API reference

#### `align`

Type: `"center" | "left" | "right" | undefined`

Default: `center`

No description available

#### `details`

Type: `ReactNode`

##### Allowed values

- `null`
- `string`
- `number`
- `bigint`
- `false`
- `true`
- `ReactElement<unknown, string | JSXElementConstructor<any>>`
- `Iterable<ReactNode>`
- `ReactPortal`
- `Promise<AwaitedReactNode>`

Default: -

No description available

#### `sticky`

Type: `boolean`

Default: `false`

No description available
