Collection of theme-ui and external components.
created:3/15/2021
updated:3/15/2021
source lines:62
comments %:21

ActionBar

A strip of actions to be attached to a container. The action items contain the labels and click event handlers. Actions can accept an order prop, and can also overwrite default actions.

Overview

({ themeKey }) => (
<Container>
<ActionBar
themeKey={themeKey}
actions={[
{
node: 'action 1',
onClick: () => console.log('clicked'),
},
{
node: <ExternalLink href="https://google.com">google</ExternalLink>,
onClick: () => console.log('clicked'),
},
]}
/>
</Container>
)

Controls

Name
Description
Default
Controls
themeKey

custom layouts from the theme, defaults to 'actionbar'

string
actionbar

A11y tests

Viewport

320px

375px

768px

1024px