UNPKG

@patreon/studio

Version:

Patreon Studio Design System

20 lines (19 loc) 685 B
import type { BaseProps, ChildrenProps, StylableProps } from '../../types/component'; import type { IconComponent } from '../Icon/types'; export declare type Variant = 'secondary' | 'primary' | 'tertiary' | 'insetBlack' | 'insetWhite' | 'warning' | 'critical' | 'live' | 'liveSubtle' | 'success'; export interface ChipProps extends BaseProps, StylableProps, Required<ChildrenProps> { /** * The variant of the chip * @default 'secondary' **/ variant?: Variant; /** * The size of the chip * @default 'regular' **/ size?: 'default' | 'sm'; /** * The icon to to display alongside text in a button **/ icon?: IconComponent; }