vault/ui/stories/toolbar/toolbar-actions.md
Joshua Ogle be2704cc91
UI: Add Toolbar to Storybook (#6761)
* Add Toolbar stories
* Update ConfirmAction story
2019-05-20 18:10:42 -06:00

25 lines
817 B
Markdown

<!--THIS FILE IS AUTO GENERATED. This file is generated from JSDoc comments in lib/core/addon/components/toolbar-actions.js. To make changes, first edit that file and run "yarn gen-story-md toolbar-actions" to re-generate the content.-->
## ToolbarActions
`ToolbarActions` is a container for toolbar links such as Add item.
It should only be used inside of `Toolbar`.
**Example**
```js
<Toolbar>
<ToolbarActions>
<ToolbarLink @params={{array 'vault.cluster.policy.edit'}}>
Edit policy
</ToolbarLink>
</ToolbarActions>
</Toolbar>
```
**See**
- [Uses of ToolbarActions](https://github.com/hashicorp/vault/search?l=Handlebars&q=ToolbarActions+OR+toolbar-actions)
- [ToolbarActions Source Code](https://github.com/hashicorp/vault/blob/master/ui/lib/core/addon/components/toolbar-actions.js)
---