Sorry, no results found for "".

Plugin SDK > Toolbar

Toolbar

Basic example

Media Area

Main content

<Canvas ctx={ctx}>
<Toolbar>
<ToolbarStack stackSize="l">
<ToolbarTitle>Media Area</ToolbarTitle>
</ToolbarStack>
</Toolbar>
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
background: 'var(--light-bg-color)',
height: '150px',
}}
>
Main content
</div>
</Canvas>

Buttons and actions

Media Area

Main content

<Canvas ctx={ctx}>
<Toolbar>
<ToolbarButton>
<BackIcon />
</ToolbarButton>
<ToolbarStack stackSize="l">
<ToolbarTitle>Media Area</ToolbarTitle>
<div style={{ flex: '1' }} />
<Button buttonType="primary">Action</Button>
</ToolbarStack>
<ToolbarButton>
<SidebarLeftArrowIcon />
</ToolbarButton>
</Toolbar>
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
background: 'var(--light-bg-color)',
height: '150px',
}}
>
Main content
</div>
</Canvas>

With button group

Media Area

Main content

<Canvas ctx={ctx}>
<Toolbar>
<ToolbarStack stackSize="l">
<ToolbarTitle>Media Area</ToolbarTitle>
<div style={{ flex: '1' }} />
<ButtonGroup>
<ButtonGroupButton>First</ButtonGroupButton>
<ButtonGroupButton selected>Second</ButtonGroupButton>
<ButtonGroupButton>Third</ButtonGroupButton>
</ButtonGroup>
</ToolbarStack>
</Toolbar>
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
background: 'var(--light-bg-color)',
height: '150px',
}}
>
Main content
</div>
</Canvas>