created:3/15/2021
updated:3/15/2021
source lines:20
comments %:50
ActionContainer
Container box with actions.
- config
- source
() => {return (<Box style={{ width: '100%' }}><ActionContaineractions={[{node: 'action 1',onClick: () => console.log('clicked'),},{node: <ExternalLink href="https://google.com">google</ExternalLink>,onClick: () => console.log('clicked'),},]}><Donut value={1 / 2} /></ActionContainer></Box>);}
Name | Description | Default |
---|---|---|
actions | optional actions provided to the component ActionItem[] | - |
plain | if plain, skip the border and spacing around the children boolean | - |
file | imports |
---|---|
"../ActionBar" | ActionBarActionItem |
- config
- source
- config
- source
() => (<ActionContaineractions={[{node: 'action 1',onClick: () => console.log('clicked'),id: 'copy',},{node: <ExternalLink href="https://google.com">google</ExternalLink>,onClick: () => console.log('clicked'),},{//this will override the action abovenode: 'Copy',id: 'copy',},]}><Donut value={1 / 2} /></ActionContainer>)