A footer bar for actions, pinned to the bottom of a page or panel.
Basic usage
First, import the component.
import {Footer} from '@pleo-io/telescope'Then use it with buttons for the actions:
import {Button, Footer} from '@pleo-io/telescope'
;<Footer>
<Button variant="secondary">Back</Button>
<Button variant="primary">Next</Button>
</Footer>See the API reference for all props and 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.
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.
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.
import {Button, Footer} from '@pleo-io/telescope'
;<Footer sticky>
<Button variant="secondary">Back</Button>
<Button variant="primary">Next</Button>
</Footer>API reference
| Prop | Type | Default |
|---|---|---|
alignNo description available | enum"center" | "left" | "right" | undefined | center |
detailsNo description available | enumnull, string, number, bigint, false, true, ReactElement<unknown, string | JSXElementConstructor<any>>, Iterable<ReactNode>, ReactPortal, Promise<AwaitedReactNode> | |
stickyNo description available | boolean | false |
Didn't find what you were looking for?
Let us know in #team-design-systems or make a request.
Edit this page