tuil
ReferenceComponentsForms and controls

RadioGroupProps

RadioGroupProps component contract.

View rawEdit

Type

export interface RadioGroupProps<T extends string = string>
  extends CommonComponentProps {
  readonly options: readonly SelectOption<T>[];
  readonly value?: T;
  readonly defaultValue?: T;
  readonly onValueChange?: (value: T) => void | Promise<void>;
  readonly field?: AdaptedTanStackField<T | undefined>;
  readonly validators?: FieldValidators<T | undefined>;
  readonly onBlur?: () => void | Promise<void>;
  readonly orientation?: "horizontal" | "vertical";
  readonly autoFocus?: boolean;
}

Members

MemberTypeRequiredDescriptionRelated types
optionsreadonly SelectOption<T>[]YesThe options member uses the readonly SelectOption<T>[] contract.
valueT | undefinedNoThe value member uses the T | undefined contract.
defaultValueT | undefinedNoThe defaultValue member uses the T | undefined contract.
onValueChange((value: T) => void | Promise<void>) | undefinedNoThe onValueChange member uses the ((value: T) => void | Promise<void>) | undefined contract.
fieldAdaptedTanStackField<T | undefined> | undefinedNoThe field member uses the AdaptedTanStackField<T | undefined> | undefined contract.AdaptedTanStackField
validatorsFieldValidators<T | undefined> | undefinedNoThe validators member uses the FieldValidators<T | undefined> | undefined contract.FieldValidators
onBlur(() => void | Promise<void>) | undefinedNoThe onBlur member uses the (() => void | Promise<void>) | undefined contract.
orientation"horizontal" | "vertical" | undefinedNoThe orientation member uses the "horizontal" | "vertical" | undefined contract.
autoFocusboolean | undefinedNoThe autoFocus member uses the boolean | undefined contract.
variantstring | undefinedNoThe variant member uses the string | undefined contract.
size"sm" | "md" | "lg" | undefinedNoThe size member uses the "sm" | "md" | "lg" | undefined contract.
unstyledboolean | undefinedNoThe unstyled member uses the boolean | undefined contract.
classNamestring | undefinedNoThe className member uses the string | undefined contract.
layoutPartial<Omit<LayoutNodeInput, "id" | "children" | "semantics">> | undefinedNoThe layout member uses the Partial<Omit<LayoutNodeInput, "id" | "children" | "semantics">> | undefined contract.
idstring | undefinedNoThe id member uses the string | undefined contract.
testIdstring | undefinedNoThe testId member uses the string | undefined contract.
roleSemanticRole | undefinedNoThe role member uses the SemanticRole | undefined contract.SemanticRole
labelstring | undefinedNoThe label member uses the string | undefined contract.
descriptionstring | undefinedNoThe description member uses the string | undefined contract.
disabledboolean | undefinedNoThe disabled member uses the boolean | undefined contract.
readOnlyboolean | undefinedNoThe readOnly member uses the boolean | undefined contract.
selectedboolean | undefinedNoThe selected member uses the boolean | undefined contract.
checkedboolean | undefinedNoThe checked member uses the boolean | undefined contract.
expandedboolean | undefinedNoThe expanded member uses the boolean | undefined contract.
valueTextstring | undefinedNoThe valueText member uses the string | undefined contract.

Source

View the secondary source reference

On this page