UNPKG

@appbuckets/react-ui

Version:
28 lines (27 loc) 780 B
import { UIMutableComponentProps, AppBucketsIcon, AppearanceProps, MouseHandler, } from '../generic'; import { IconProps } from '../Icon'; export interface LabelProps extends UIMutableComponentProps<StrictLabelProps>, AppearanceProps {} export interface StrictLabelProps { /** Set the Disabled style */ disabled?: boolean; /** Icon shorthand */ icon?: AppBucketsIcon<IconProps>; /** On click Handler */ onClick?: LabelClickHandler; /** On label remove handler */ onRemove?: LabelRemoveHandler; /** Set the label as removable */ removable?: boolean | AppBucketsIcon<IconProps>; } export declare type LabelClickHandler = MouseHandler<HTMLElement, LabelProps>; export declare type LabelRemoveHandler = MouseHandler< SVGSVGElement, LabelProps >;