UNPKG

@amsterdam/design-system-react

Version:

All React components from the Amsterdam Design System. Use it to compose pages in your website or application.

24 lines (23 loc) 854 B
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { HTMLAttributes } from 'react'; export declare const badgeColors: readonly ["azure", "lime", "magenta", "orange", "purple", "red", "yellow"]; type BadgeColor = (typeof badgeColors)[number]; export type BadgeProps = HTMLAttributes<HTMLElement> & { /** The background colour. */ color?: BadgeColor; /** The text content. */ label: string | number; }; /** * @see {@link https://designsystem.amsterdam/?path=/docs/components-feedback-badge--docs Badge docs at Amsterdam Design System} */ export declare const Badge: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & { /** The background colour. */ color?: BadgeColor; /** The text content. */ label: string | number; } & import("react").RefAttributes<HTMLElement>>; export {};