Docs
Checkable-tag

Checkable Tag

Used for marking and categorisation. It works like Checkbox, click it to toggle checked state.

Usage

Example Code

1import { CheckableTag } from "inc-design-system/tag";

Example Code

1<CheckableTag>CheckableTag</CheckableTag>

Props

CheckableTag

PropTypeDescriptionDefault
classNamestringAdditional CSS classes to apply to the tag container.-
variant"default" | "primary" | "secondary" | "transparentBackground"The variant of the tag. Can be one of 'default', 'primary', 'secondary', or 'transparentBackground'."default"
checkedbooleanWhether the Tag is checked by default.false
checkedBackgroundColorstringBackground color when Tag is checked."#DDD2F0"
checkedTextColorstringText color when Tag is checked."#482384"
onClickTag() => voidCallback when the Tag is clicked.-
closeablebooleanWhether the Tag can be closed. Default is false. If true, a close button will be displayed.false
onClose() => voidCallback when the Tag is closed.-
iconReactNodeIcon to display alongside the Tag text. Default is null.null
disabledbooleanWhether the Tag is disabled. Default is false.false
borderbooleanWhether the Tag has a border. Default is true.true