rharuow-ds
Version:
Modern React Design System with 20 components and auto color system. Define only 2 colors (primary/secondary) and get automatic variations (hover, light, dark) with proper text contrast (WCAG AA). Includes: Table, Card, Button, Chip, Pagination, Input, Te
14 lines (13 loc) • 491 B
TypeScript
import React from "react";
interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> {
/** Label text displayed inside the chip */
label: string;
/** Whether the chip is currently active/selected */
active?: boolean;
/** Callback fired when the chip is toggled */
onChange?: (active: boolean) => void;
/** Icon rendered before the label */
icon?: React.ReactNode;
}
export declare const Chip: React.FC<ChipProps>;
export {};