@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) • 712 B
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { LabelHTMLAttributes, PropsWithChildren } from 'react';
import { HintProps } from '../Hint';
export type LabelProps = PropsWithChildren<LabelHTMLAttributes<HTMLLabelElement>> & HintProps;
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-label--docs Label docs at Amsterdam Design System}
*/
export declare const Label: import("react").ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & {
children?: import("react").ReactNode | undefined;
} & import("react").HTMLAttributes<HTMLElement> & {
hint?: string;
optional?: boolean;
} & import("react").RefAttributes<HTMLLabelElement>>;