UNPKG

@navikt/ds-react

Version:

React components from the Norwegian Labour and Welfare Administration.

26 lines (25 loc) 808 B
import { RadioProps } from "./types.js"; /** * Handles props for Radios in context with Fieldset and RadioGroup */ export declare const useRadio: (props: RadioProps) => { readOnly: boolean | undefined; inputProps: { name: string | undefined; defaultChecked: boolean | undefined; checked: boolean | undefined; onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; onClick: (event: React.MouseEvent<HTMLInputElement>) => void; required: boolean | undefined; type: string; id: string; "aria-invalid"?: boolean; "aria-describedby"?: string; disabled?: boolean; }; showErrorMsg: boolean; hasError: boolean; errorId: string; inputDescriptionId: string; size: "small" | "medium"; };