UNPKG

slightning-coco-widget

Version:

SLIGHTNING 的 CoCo 控件框架。

18 lines (17 loc) 662 B
import type { FC, ReactNode } from 'react'; import React from 'react'; import { NativeProps } from '../../utils/native-props'; export declare type RadioValue = string | number; export declare type RadioProps = { checked?: boolean; defaultChecked?: boolean; disabled?: boolean; onChange?: (checked: boolean) => void; value?: RadioValue; block?: boolean; id?: string; icon?: (checked: boolean) => ReactNode; children?: ReactNode; onClick?: (event: React.MouseEvent<HTMLLabelElement, MouseEvent>) => void; } & NativeProps<'--icon-size' | '--font-size' | '--gap'>; export declare const Radio: FC<RadioProps>;