DocSpace-client/web/ASC.Web.Components/example/stories/input/checkbox
2019-06-28 11:27:51 +03:00
..
checkbox.stories.js web: Fix Checkbox component stories 2019-06-28 11:27:51 +03:00
README.md web: Fix Checkbox component 2019-06-26 16:25:35 +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