DocSpace-client/web/ASC.Web.Storybook/stories/input/toggle-button
2019-08-01 10:50:25 +03:00
..
index.stories.js Web: Components: Added toggle-button component 2019-08-01 10:50:25 +03:00
README.md Web: Components: Added toggle-button component 2019-08-01 10:50:25 +03:00

ToggleButton

Description

Custom toggle button input

Usage

import { ToggleButton } from 'asc-web-components';

<ToggleButton value="text" onChange={event => alert(event.target.value)}/>

Properties

Props Type Required Values Default Description
value string - - - Value of the input
isChecked bool - - - The checked property sets the checked state of a ToggleButton.
isDisabled bool - - - Disables the ToggleButton
onChange func - - Will be triggered whenever an ToggleButton is clicked