UNPKG

@amsterdam/design-system-react

Version:

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

33 lines (32 loc) 1.52 kB
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { HTMLAttributes, ReactNode } from 'react'; export declare const iconSizes: readonly ["small", "large", "heading-3", "heading-4", "heading-5", "heading-6"]; type IconSize = (typeof iconSizes)[number]; export type IconProps = { /** Changes the icon colour for readability on a dark background. */ color?: 'inverse'; /** The size of the icon. Choose the size of the corresponding body text or heading. */ size?: IconSize; /** Whether the icon container should be made square. */ square?: boolean; /** The component rendering the icon’s markup. */ svg: Function | ReactNode; } & HTMLAttributes<HTMLSpanElement>; /** * @see {@link https://designsystem.amsterdam/?path=/docs/components-media-icon--docs Icon docs at Amsterdam Design System} * @see {@link https://designsystem.amsterdam/?path=/docs/brand-assets-icons--docs Icons overview at Amsterdam Design System} */ export declare const Icon: import("react").ForwardRefExoticComponent<{ /** Changes the icon colour for readability on a dark background. */ color?: "inverse"; /** The size of the icon. Choose the size of the corresponding body text or heading. */ size?: IconSize; /** Whether the icon container should be made square. */ square?: boolean; /** The component rendering the icon’s markup. */ svg: Function | ReactNode; } & HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLElement>>; export {};