UNPKG

@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.

20 lines (19 loc) 747 B
import * as React from 'react'; export declare function useRadioGroup(params: useRadioGroup.Parameters): { getRootProps: (externalProps?: {}) => import("../utils/types.js").WithBaseUIEvent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>; getInputProps: (externalProps?: {}) => import("../utils/types.js").WithBaseUIEvent<any>; checkedValue: unknown; setCheckedValue: (newValue: unknown) => void; touched: boolean; setTouched: React.Dispatch<React.SetStateAction<boolean>>; }; declare namespace useRadioGroup { interface Parameters { name?: string; disabled?: boolean; readOnly?: boolean; defaultValue?: unknown; value?: unknown; } } export {};