CheckTag

A tag that can be checked, used to quickly toggle the selected state.

Basic usage

Click the tag to toggle the checked state.

标签

Types

Set the tag type with type.

primarysuccessinfowarningdanger

Disabled

Clicking no longer toggles the state after disabled is set.

未选中禁用选中禁用

CheckTag API

CheckTag Attributes

NameDescriptionTypeDefault
checkedWhether the tag is checkedbooleanfalse
typeTag typeenumprimary
disabledWhether the tag is disabledbooleanfalse

CheckTag Events

NameDescriptionParameters
onCheckedChangeTriggered when the checked state changesFunction

CheckTag Slots

NameDescriptionReact prop
defaultTag contentchildren