DocSpace-buildtools/web/ASC.Web.Storybook/stories/input/checkbox
2019-07-09 17:54:30 +03:00
..
checkbox.stories.js Moved Storybook to separated ASC.Web.Storybook folder (issue: 'git clean -xdf' removes storybook files every time) 2019-07-09 17:54:30 +03:00
README.md Moved Storybook to separated ASC.Web.Storybook folder (issue: 'git clean -xdf' removes storybook files every time) 2019-07-09 17:54:30 +03:00

Checkbox

Description

Custom checkbox input

Usage

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

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

Properties

Props Type Required Values Default Description
id string - - - Used as HTML id property
name string - - - Used as HTML name property
value string - - - Value of the input
label string - - - Label of the input
isChecked bool - - - The checked property sets the checked state of a checkbox.
isIndeterminate bool - - - If true, this state is shown as a rectangle in the checkbox
isDisabled bool - - - Disables the Checkbox input
onChange func - - Will be triggered whenever an CheckboxInput is clicked