DocSpace-buildtools/packages/asc-web-components/switch-button
2021-03-24 16:14:59 +03:00
..
svg Web: Commponents: added SwitchButton component (from AppComponents) 2021-03-24 16:14:59 +03:00
index.js Web: Commponents: added SwitchButton component (from AppComponents) 2021-03-24 16:14:59 +03:00
README.md Web: Commponents: added SwitchButton component (from AppComponents) 2021-03-24 16:14:59 +03:00
styled-switch-button.js Web: Commponents: added SwitchButton component (from AppComponents) 2021-03-24 16:14:59 +03:00
switch-button.stories.js Web: Commponents: added SwitchButton component (from AppComponents) 2021-03-24 16:14:59 +03:00
switch-button.test.js Web: Commponents: added SwitchButton component (from AppComponents) 2021-03-24 16:14:59 +03:00

SwitchButton

Actions with a button.

Usage

import { SwitchButton } from "app-components";
<SwitchButton
  disabled={false}
  checked={false}
  onChange={() => alert("SwitchButton clicked")}
/>

Properties

Props Type Required Values Default Description
disabled bool - - false Disables the button default functionality
onChange func - - - The event triggered when the button is clicked
checked bool - - false Makes SwitchButton checked.