Skip to content
Components

FooterNew: New

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

PropTypeDefault
align
enum
center
details
enum
sticky
boolean
false
Didn't find what you were looking for?
Edit this page