Chip
A small rounded label, in five colours.
A small rounded label, in five colours.
npm install @heroui/react
First time with HeroUI? Set it up once.
/**
* Demo from HeroUI, https://heroui.com (docs example chip/basic.tsx).
* Apache-2.0, Copyright 2025 NextUI Inc. Full text: https://github.com/heroui-inc/heroui/blob/main/LICENSE
* Changed for Tastebud: a default export (HeroUI's docs use named ones).
*/
import {Chip} from "@heroui/react";
export default function ChipDemo() {
return (
<div className="flex flex-wrap items-center gap-3">
<Chip>Default</Chip>
<Chip color="accent">Accent</Chip>
<Chip color="success">Success</Chip>
<Chip color="warning">Warning</Chip>
<Chip color="danger">Danger</Chip>
</div>
);
}
Changed for this site: A default export (HeroUI's docs use named ones).