⌘ K

Feedback

Context, feedback, and selection controls.

A compact category label with optional removal affordance.

Interactive playground

LIVE PREVIEW
Design

Props

Tag label.

Tag color.

Show the remove button.

Generated code
import { Tag } from '@vrum/ui';

<Tag
  label={"Design"}
  color={"purple"}
  removable={false}
/>
Copy code

Tag props

PropTypeDefaultDescription
variant"default" | "purple" | "blue" | "green" | "amber" | "red"nonevariant configuration.
color"default" | "purple" | "blue" | "green" | "amber" | "red" | "gray""default"Tag color.
labelstringnoneTag label.
removablebooleannoneShow the remove button.
onRemove(() => void)noneon remove configuration.
defaultCheckedbooleannonedefault checked configuration.
defaultValuestring | number | readonly string[]noneInitial value for an uncontrolled component.
autoFocusbooleannoneauto focus configuration.
classNamestringnoneAdditional CSS classes.
idstringnoneid configuration.
styleCSSPropertiesnoneInline style overrides.
aria-invalidboolean | "false" | "true" | "grammar" | "spelling"noneIndicates the entered value does not conform to the format expected by the application.
aria-labelstringnoneDefines a string value that labels the current element.
childrenReactNodenoneContent rendered inside the component.
onFocusFocusEventHandler<HTMLDivElement>noneon focus configuration.
onBlurFocusEventHandler<HTMLDivElement>noneon blur configuration.
onChangeChangeEventHandler<HTMLDivElement, Element>noneCalled when the input value changes.
onSubmitSubmitEventHandler<HTMLDivElement>noneCalled when the form is submitted.
onKeyDownKeyboardEventHandler<HTMLDivElement>noneon key down configuration.
onClickMouseEventHandler<HTMLDivElement>noneCalled when the control is activated.
onSelectReactEventHandler<HTMLDivElement>noneon select configuration.