1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/ui/toggle-button
Nidhi Kumari 7424e98416
Updated all instances of "Component API" to "Props" in storybook documentation (#15324)
* replaced Component API with Props

* replaced Component API with Props in DOCUMENTATION.stories.mdx

* removed base avatar component
2022-07-27 00:22:40 +05:30
..
index.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
index.scss ToggleButton: Use label so users can click text (#13876) 2022-03-18 10:16:11 -05:00
README.mdx Updated all instances of "Component API" to "Props" in storybook documentation (#15324) 2022-07-27 00:22:40 +05:30
toggle-button.component.js Dark Mode: Fix colors in toggle button (#14280) 2022-03-30 17:29:59 -05:00
toggle-button.stories.js toggle-button (#12817) 2021-12-08 12:51:25 -08:00

import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';

import ToggleButton from '.';

# Toggle Button

Button that toggles state on or off. Wraps <a href="https://gdowens.github.io/react-toggle-button/" target="_blank">react-toggle-button</a>

<Canvas>
  <Story id="ui-components-ui-toggle-button-toggle-button-stories-js--default-story" />
</Canvas>

## Props

<ArgsTable of={ToggleButton} />