@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
23 lines (22 loc) • 851 B
TypeScript
import React from 'react';
import { RadioChangeEvent } from '@douyinfe/semi-foundation/lib/cjs/radio/radioInnerFoundation';
import { strings } from '@douyinfe/semi-foundation/lib/cjs/radio/constants';
import { ArrayElement } from '../_base/base';
export type RadioGroupButtonSize = ArrayElement<typeof strings.BUTTON_SIZE>;
export type RadioMode = ArrayElement<typeof strings.MODE>;
export interface RadioContextValue {
mode?: RadioMode;
radioGroup?: {
value?: string | number;
isButtonRadio?: any;
disabled?: boolean;
prefixCls?: string;
name?: string;
onChange?: (e: RadioChangeEvent) => void;
buttonSize?: RadioGroupButtonSize;
isCardRadio?: boolean;
isPureCardRadio?: boolean;
};
}
declare const Context: React.Context<RadioContextValue>;
export default Context;