UNPKG

@nami-ui/radio

Version:
12 lines (11 loc) 514 B
/// <reference types="react" /> export declare type RadioValue = null | boolean | symbol | number | bigint | string | object; export interface RadioGroupContextType { /** 禁用该组下的所有单选框 */ disabled: boolean; /** 判断所传入的选项是否被选中 */ isChecked: (value: RadioValue) => boolean; /** 改变选中项 */ change: (value: RadioValue, check: boolean) => void; } export declare const RadioGroupContext: import("react").Context<RadioGroupContextType | null>;