@styleless-ui/react
Version:
Completely unstyled, headless and accessible React UI components.
11 lines (10 loc) • 516 B
TypeScript
import * as React from "react";
import { type Props } from "./RadioGroup";
interface IRadioGroupContext {
value: Exclude<Props["value"], undefined>;
radios: [string, React.RefObject<HTMLButtonElement>][];
onChange: (newCheckedState: boolean, inputValue: string) => void;
registerRadio: (value: string, ref: React.RefObject<HTMLButtonElement>) => void;
}
declare const RadioGroupContext: React.Context<IRadioGroupContext | undefined>;
export { RadioGroupContext as default, type IRadioGroupContext };