1.8.0 • Published 4 years ago

@schibstedspain/sui-form-checkbox v1.8.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

FormCheckbox

Important: The @schibstedspain/sui-form-checkbox component is not yet fully compliant with UX Design, as it is still in WIP by UX team. Please take into account the specifications defined here, when iterate this first provisional component's version to make it fully compliant.

Simple checkbox form element.

You can pass a custom callback to be executed when the checkbox value is changed, through onChange property.

Despite it has default icons to represent the states of the checkbox, it allows their customization (for checked/unchecked states) through svgIcons.checked and svgIcons.unchecked properties.

It also supports to display an error message, if the component's property errorMessage is set.