UNPKG

@amsterdam/design-system-react

Version:

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

18 lines (17 loc) 736 B
/** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import type { HTMLAttributes, PropsWithChildren } from 'react'; type HintAndOptionalProps = { /** Show a custom hint text. */ hint?: string; inFieldSet?: boolean; /** 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 = HintAndOptionalProps & PropsWithChildren<HTMLAttributes<HTMLElement>>; export declare const Hint: import("react").ForwardRefExoticComponent<HintAndOptionalProps & HTMLAttributes<HTMLElement> & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLElement>>; export {};