Tag
Metadata pills: 28px, raised and ringed, with an optional icon and remove circle.
gpt-5claude-sonnet-4-5Oct 12Activecheckout
<div className="flex flex-wrap items-center gap-6">
<Tag>gpt-5</Tag>
<Tag>claude-sonnet-4-5</Tag>
<Tag icon={icons.calendar}>Oct 12</Tag>
<Tag>Active</Tag>
<Tag onRemove={() => undefined}>checkout</Tag>
</div>import { Tag } from "@logicplanes/kaeso-ui";Props
childrenReactNodeThe tag's text.
iconIconSvgElementAn icon before the text.
invalidbooleanMarks a value that isn't accepted: a red ring, red text and an error icon named "Not accepted", so it doesn't rest on color.
onClick((e: MouseEvent<HTMLElement, MouseEvent>) => void)Renders a button with the control's hover, press and focus: raised tags take the secondary button's material, outline tags the ghost's.
onRemove((e: MouseEvent<HTMLButtonElement, MouseEvent>) => void)Shows a remove circle; called with the click.
pressedbooleanFor toggle pills (DisplayOptions): sets aria-pressed, and
truedraws the selected soft fill whatever the variant, so a toggle needs no variant swap.removeLabelstringThe remove circle's accessible name. Defaults to "Remove" and the label in the provider's language.
size"md" | "sm" = mdThe tag's height.
variant"outline" | "soft" | "raised" = raisedRaised on the panel, soft fill, or outlined.