UNPKG

reablocks

Version:
49 lines (47 loc) 1.21 kB
import { ChipTheme } from './ChipTheme'; import { default as React, FC, LegacyRef, ReactElement } from 'react'; export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> { /** * Color variant for the chip. */ color?: 'default' | 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'info' | string; /** * Size variant for the chip. */ size?: 'small' | 'medium' | 'large' | string; /** * Style variant for the chip. */ variant?: 'filled' | 'outline' | string; /** * Whether the chip is selected. */ selected?: boolean; /** * Whether the chip is disabled. */ disabled?: boolean; /** * Whether to disable the margins. */ disableMargins?: boolean; /** * Content to display before the chip label. */ start?: ReactElement | string; /** * Content to display before the chip label. */ end?: ReactElement | string; /** * Theme for the Chip. */ theme?: ChipTheme; } export interface ChipRef { /** * Reference to the root element. */ ref?: LegacyRef<HTMLDivElement>; } export declare const Chip: FC<ChipProps & ChipRef>;