Chip
Compact tag for labeling and filtering, in solid and outline treatments.
A Chip is a compact tag in one of two treatments: solid on the neutral
chip surface, or outline with the brand border and accent. Four sizes
(s, m, l, xl), an optional prefix icon, and an optional close
affordance.
import { Chip } from '@workflowbuilder/ui';
function Example() { return <Chip label="tag label" variant="outline" size="l" onClose={() => remove()} />;}
Also accepts every standard <span> attribute (onChange, placeholder, aria-*, …); they are forwarded to the underlying element.
labelrequiredcloseLabelAccessible name of the close affordance.
onCloseWhen set, a close affordance is rendered and invokes this callback.
prefixIconsizevariantCSS variables
Section titled “CSS variables”Color
--wb-public-chip-focus-ring-color