Paste assistant Assistant
Figma
Star

Topbar

Topbar contains application-wide controls that rest at the top of the screen.

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
string
Default
TOPBAR

display

Used to control the display of the actions, either flex or none.

Type
| "flex" | "none" | ("flex" | "none" | null)[] | { [x: string]: "flex" | "none" | undefined [x: number]: "flex" | "none" | undefined }

element

Overrides the default element name to apply unique styles with the Customization Provider.

Type
string
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

To help us improve this site, we use tools that set cookies. The data gathered by these tools is anonymized. If you reject the use of cookies, no analytics service will be initiated.