Code
API
You can import the interfaces that are used for the onRemove and onChange.This component extends the native <div> API. That's why the className prop is not included in the table.
children
ReactNode
β
value
string
β
isRemovable
boolean
β
isSelectable
boolean
β
characterLimit
number
β
tooltipPosition
'top' | 'bottom' | 'right' | 'left';
β
checked
boolean
β
defaultChecked
boolean
β
onRemove
(e: TagRemoveEventProps) => void;
β
onChange
(e: TagChangeEventProps) => void; }
β
children
The children can be a string, an HTML element or even a Tag.Avatar without the need to install the Avatar component as a dependency.
characterLimit
The character limit used to constrain the string passed as child. If the string passed surpassed the characterLimit value,a tooltip is rendered. The default value is 15.
Example
Last updated