UNPKG

@amsterdam/design-system-react

Version:

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

17 lines (16 loc) 710 B
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { HTMLAttributes, PropsWithChildren } from 'react'; type HintAndOptionalProps = { /** Show a custom hint text. */ hint?: string; /** Appends the text '(niet verplicht)' to the label or legend if no hint is provided. Use when the associated inputs are optional. */ optional?: boolean; }; export type HintProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & HintAndOptionalProps; export declare const Hint: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & { children?: import("react").ReactNode | undefined; } & HintAndOptionalProps & import("react").RefAttributes<HTMLElement>>; export {};