Skip to content

ActionBar

The Action Bar component displays a fixed bottom action bar with a set of actions that can be performed on selected items. It’s designed to be controlled by table or checkbox selections.

import {
ActionBar,
Button,
useDisclosure,
} from '@fintech-sandpit/ui/react';
const {
open,
onOpen,
onClose,
} = useDisclosure();
return (
<ActionBar.Root open={open}>
<ActionBar.SelectionTrigger>
1 selected
</ActionBar.SelectionTrigger>
<ActionBar.Separator />
<Button
leftIcon={faTrash}
variant="outline"
>
Delete
</Button>
<Button
rightIcon={faShare}
variant="outline"
>
Share
</Button>
</ActionBar.Root>
);
NameTypeDefaultDescription
openbooleanfalseWhether the action bar is open
placementActionBarPlacementbottomThe placement of the action bar
type ActionBarPlacement = 'bottom' | 'bottom-start' | 'bottom-end'