UNPKG

@focuson/form_components

Version:

Components that can be used by @focuson/forms

15 lines (14 loc) 856 B
import { NameAnd } from "@focuson/utils"; import { CommonStateProps, LabelAlignment } from "./common"; import { FocusOnContext } from "@focuson/focuson"; export interface RadioProps<S, T, Context> extends CommonStateProps<S, T, Context>, LabelAlignment { enums: NameAnd<string>; defaultValue?: string; } export declare function Radio<S, T, Context extends FocusOnContext<S>>({ state, mode, enums, ariaLabel, id, labelPosition, required }: RadioProps<S, string, Context>): import("react/jsx-runtime").JSX.Element; export interface LabelAndRadioProps<S, T, Context> extends RadioProps<S, T, Context> { label: string; allButtons: NameAnd<JSX.Element>; buttons?: string[]; } export declare function LabelAndRadio<S, Context extends FocusOnContext<S>>(props: LabelAndRadioProps<S, string, Context>): import("react/jsx-runtime").JSX.Element;