Fix dropdown component for new Storybook format (#12816)
* dropdown * Updating default props, proptype descriptions and removing required as doesn't do anything Co-authored-by: georgewrmarshall <george.marshall@consensys.net>feature/default_network_editable
parent
363f81db11
commit
c3e7952656
@ -0,0 +1,35 @@ |
|||||||
|
import { Story, Canvas, ArgsTable } from '@storybook/addon-docs'; |
||||||
|
|
||||||
|
import Dropdown from '.'; |
||||||
|
|
||||||
|
# Dropdown |
||||||
|
|
||||||
|
A toggleable menu that allows the user to choose one value from a predefined list |
||||||
|
|
||||||
|
<Canvas> |
||||||
|
<Story id="ui-components-ui-dropdown-dropdown-stories-js--default-story" /> |
||||||
|
</Canvas> |
||||||
|
|
||||||
|
## Component API |
||||||
|
|
||||||
|
<ArgsTable of={Dropdown} /> |
||||||
|
|
||||||
|
## Usage |
||||||
|
|
||||||
|
### Options Without Names |
||||||
|
|
||||||
|
<Canvas> |
||||||
|
<Story id="ui-components-ui-dropdown-dropdown-stories-js--options-without-names" /> |
||||||
|
</Canvas> |
||||||
|
|
||||||
|
### Options With Long Names |
||||||
|
|
||||||
|
<Canvas> |
||||||
|
<Story id="ui-components-ui-dropdown-dropdown-stories-js--options-with-long-names" /> |
||||||
|
</Canvas> |
||||||
|
|
||||||
|
### Options With Long Names And Short Width |
||||||
|
|
||||||
|
<Canvas> |
||||||
|
<Story id="ui-components-ui-dropdown-dropdown-stories-js--options-with-long-names-and-short-width" /> |
||||||
|
</Canvas> |
Loading…
Reference in new issue