antd-mobile-taro-ui
Version:
以antd-mobile为设计标准,基于taro框架的微信小程序组件库
16 lines (15 loc) • 587 B
TypeScript
import React, { FC } from 'react';
import { NativeProps } from 'antd-mobile/es/utils/native-props';
export declare type CheckboxValue = string | number;
export declare type CheckboxProps = {
checked?: boolean;
defaultChecked?: boolean;
disabled?: boolean;
onChange?: (checked: boolean) => void;
value?: CheckboxValue;
indeterminate?: boolean;
block?: boolean;
id?: string;
icon?: (checked: boolean, indeterminate: boolean) => React.ReactNode;
} & NativeProps<'--icon-size' | '--font-size' | '--gap'>;
export declare const Checkbox: FC<CheckboxProps>;