UNPKG

@cbinsights/fds

Version:
16 lines (15 loc) 567 B
import Icon from 'components/Icon'; export declare const VALID_TYPES: readonly ["update", "count"]; export interface BadgeProps { /** * String to render inside the Badge bubble. * The `element` type should be reserved for FDS icons. */ label?: string | Icon | JSX.Element; /** When true, an indicator dot will be rendered when the `message` is empty */ showDot?: boolean; /** Type of Badge */ type?: typeof VALID_TYPES[number]; } declare const Badge: ({ label, showDot, type }: BadgeProps) => JSX.Element; export default Badge;