Skip to content

Checkbox - add error state #581

@daniele-zurico

Description

@daniele-zurico

The Checkbox should have one property in case of error:

isError?: boolean;

if isError=true we should add some classes to the style property of the container, checkbox, and label. In particular:

dcx-checkbox-container--error
dcx-checkbox-checkbox--error
dcx-checkbox-label--error

please make sure you create:

  • test
  • storybook documentation
  • storybook unstyled
  • storybook classBased

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions