UNPKG

retro-react

Version:

A React component library for building retro-style websites

22 lines (21 loc) 742 B
/// <reference types="react" /> import { ThemeUICSSObject } from 'theme-ui'; export declare type ChipColor = 'primary' | 'secondary' | 'success' | 'error' | 'warn' | 'greyscale' | 'highlight'; export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> { /** * The color of the Chip. * * @default 'primary' */ color?: ChipColor; sx?: ThemeUICSSObject; } /** * Chips are used to represent small blocks of information. Pass the `onClick` or `onKeyDown` prop to make the Chip clickable. * * @example * <Chip color="success"> * AB * </Chip> */ export declare const Chip: import("react").ForwardRefExoticComponent<ChipProps & import("react").RefAttributes<HTMLDivElement>>;