yarn add @twilio-paste/topbar - or - yarn add @twilio-paste/core
import {Topbar} from '@twilio-paste/core/topbar';
const TopbarExample = () => {
return (
<Topbar id="topbar">
<TopbarActions justify="start">{actions}</TopbarActions>
<TopbarActions justify="end">{actions}</TopbarActions>
</Topbar>
);
};
id RequiredRequired
Create a unique ID for the Topbar and provide it to the Sidebar component for accessible skip links
- Type
string
element
Overrides the default element name to apply unique styles with the Customization Provider.
- Type
any
- Default
TOPBAR
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.
display
Used to control the display of the actions, either flex or none.
- Type
any
element
Overrides the default element name to apply unique styles with the Customization Provider.
- Type
any
- Default
TOPBAR_ACTIONS
justify
Used to control where the actions are aligned visually, to the start or end or center of the container.
- Type
Justify
- Default
end
Inherited props
Paste components will often extend native HTML elements and as a result will inherit or extend their available properties. Below is a list of the props this component has inherited and are also available to use.