UNPKG

@amsterdam/design-system-react

Version:

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

31 lines (30 loc) 1.27 kB
/** * @license EUPL-1.2+ * Copyright (c) 2021 Gemeente Utrecht * Copyright (c) 2021 Robbert Broersma * Copyright Gemeente Amsterdam */ import type { HTMLAttributes, ReactNode } from 'react'; export declare const iconSizes: string[]; 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>; 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 {};