Go Main page
Go Main page

Web components

cover

components

Tag

v.1.0.0 | Saturn

Usage

import { Tag } from '@kubit-ui-web/react-components'
123
<Tag variant="SQUARE" option="HEALTHY" status="NORMAL">
  Content
</Tag>

Props

Let's delve into the versatility of the tag component by examining all its avalaible props.

PropertyTypeDefaultDescription
variant
Required
String-Variant
status
Required
String-State of tag
option
Required
String-Allow to extend variant's styles
children
Required
ReactNode-Content
iconIElementOrIcon-Icon
truncateTextString-It indicates if text should be truncated
aria-labelString-aria-label label for tag
aria-labelledbyString-aria-labelledby label for tag
aria-describedbyString-aria-describedby label for tag
aria-disabledBoolean-aria-disabled label for tag
dataTestIdString-Test id
ctvTagStateKeyOfType-Modify styles for the default version of the component
extraCtTagStylesOptionPropsType-Modify styles for the default version of the component