UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

31 lines (30 loc) 830 B
import type SvgIcon from '../SvgIcon/SvgIcon'; import type { UtilityColor } from '../utilities/colors'; export interface TagProps { /** * The color scheme of the tag * @default 'default' */ color?: TagColor; /** * The text content displayed in the tag */ label: string; /** * The size of the tag * @default 'medium' */ size?: TagSize; /** * Icon to display at the start of the tag */ startAdornment?: typeof SvgIcon; } type TagSize = 'large' | 'medium' | 'small'; type TagColor = UtilityColor | 'grey'; type TagColors = { [key in TagColor]: string; }; export declare const colors: TagColors; declare function Tag({ color, label, size, startAdornment: StartAdornment, }: TagProps): JSX.Element; export default Tag;