<Chip
label="Cassian Andor"
avatar="https://example.com/avatar.jpg"
color="#3e3e5f"
icon={StarIcon}
size="medium"
onClick={() => console.log("Clicked")}
onClose={(e) => console.log("Closed")}
/>
Chip Props
Note: Only works when icon is not set
color
string
default:"#14141429"
Several color formats work, such as HEX, RGB, HSL, HSV, etc.
Note: Only works when avatar is not set
Setting this will make the chip clickable and focusable.
When size="small", only one of onClick or onClose can be used, not both.
onClose
(e: MouseEvent | KeyboardEvent) => void
Setting this will render the chip’s close button.When size="small", only one of onClick or onClose can be used, not both.
size
"small" | "medium"
default:"medium"
Wraps text when it overflows.