Chip
Chip renders a compact pill for metadata, status, or filter-like selections, with optional icons, full-width layout, and status types.
Code
import { Chip } from "@falcon/ui-kit/dist/legacy";
export function Example() { return <Chip icon="bell" text="Inventory alert" />;}Without icon
Section titled “Without icon”Code
import { Chip } from "@falcon/ui-kit/dist/legacy";
export function Example() { return <Chip text="Confirmed" />;}Chip Types
Section titled “Chip Types”Code
import { Chip } from "@falcon/ui-kit/dist/legacy";
export function Example() { return ( <div className="tw:flex tw:gap-5"> <Chip text="Draft" type="neutral" /> <Chip text="Confirmed" type="success" /> <Chip text="Blocked" type="error" /> <Chip text="Needs review" type="warning" /> <Chip text="Open filter" type="interactive" /> </div> );}Chip Full Width And Default
Section titled “Chip Full Width And Default”Code
import { Chip } from "@falcon/ui-kit/dist/legacy";
export function Example() { return ( <div className="tw:flex tw:w-100 tw:flex-col tw:gap-5 tw:border tw:p-2.5"> <Chip fullWidth icon="bell" text="Confirmed order" type="success" /> <Chip icon="bell" text="Blocked order" type="error" /> </div> );}className
Section titled “className”className?: stringdisabled
Section titled “disabled”disabled?: booleanfullWidth
Section titled “fullWidth”fullWidth?: booleanicon?: stringonRemove
Section titled “onRemove”onRemove?: (() => void)text: stringtype?: "neutral" | "error" | "success" | "warning" | "interactive" = "neutral"