mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 04:20:53 +01:00
13f4295287
* update Icon to TS version and using proper Enums * Update ui/components/ui/menu/menu.stories.js Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net> * Update ui/components/ui/nickname-popover/nickname-popover.component.js Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net> --------- Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net> |
||
---|---|---|
.. | ||
dropdown.js | ||
dropdown.scss | ||
dropdown.stories.js | ||
index.js | ||
README.mdx |
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="components-ui-dropdown--default-story" /> </Canvas> ## Props <ArgsTable of={Dropdown} /> ## Usage ### Options Without Names <Canvas> <Story id="components-ui-dropdown--options-without-names" /> </Canvas> ### Options With Long Names <Canvas> <Story id="components-ui-dropdown--options-with-long-names" /> </Canvas> ### Options With Long Names And Short Width <Canvas> <Story id="components-ui-dropdown--options-with-long-names-and-short-width" /> </Canvas>