@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
14 lines (13 loc) • 556 B
TypeScript
import * as React from 'react';
export interface RadioGroupContext {
disabled: boolean | undefined;
readOnly: boolean | undefined;
required: boolean | undefined;
checkedValue: unknown;
setCheckedValue: React.Dispatch<React.SetStateAction<unknown>>;
onValueChange: (value: unknown, event: Event) => void;
touched: boolean;
setTouched: React.Dispatch<React.SetStateAction<boolean>>;
}
export declare const RadioGroupContext: React.Context<RadioGroupContext>;
export declare function useRadioGroupContext(): RadioGroupContext;