@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
27 lines (26 loc) • 1.22 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { ButtonHTMLAttributes } from 'react';
import type { IconProps } from '../Icon';
export type IconButtonProps = {
/** Changes the text colour for readability on a light or dark background. */
color?: 'contrast' | 'inverse';
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
label: string;
/** The size of the icon. */
size?: IconProps['size'];
/** The component rendering the icon’s markup. */
svg?: IconProps['svg'];
} & ButtonHTMLAttributes<HTMLButtonElement>;
export declare const IconButton: import("react").ForwardRefExoticComponent<{
/** Changes the text colour for readability on a light or dark background. */
color?: "contrast" | "inverse";
/** The accessible text for the button. Will be announced by screen readers. Should describe the button’s action. */
label: string;
/** The size of the icon. */
size?: IconProps["size"];
/** The component rendering the icon’s markup. */
svg?: IconProps["svg"];
} & ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;