UNPKG

@coconut-software/ui

Version:

React components for faster and easier web development.

17 lines (16 loc) 547 B
import type SvgIcon from '../SvgIcon/SvgIcon'; import type { UtilityColor } from '../utilities/colors'; export interface TagProps { color?: TagColor; label: string; size?: TagSize; 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;