UNPKG

antd-mobile-taro-ui

Version:

以antd-mobile为设计标准,基于taro框架的微信小程序组件库

14 lines (13 loc) 537 B
import { FC, ReactNode } from 'react'; import { NativeProps } from 'antd-mobile/es/utils/native-props'; export declare type SwitchProps = { loading?: boolean; disabled?: boolean; checked?: boolean; defaultChecked?: boolean; beforeChange?: (val: boolean) => Promise<void>; onChange?: (checked: boolean) => void | Promise<void>; checkedText?: ReactNode; uncheckedText?: ReactNode; } & NativeProps<'--checked-color' | '--width' | '--height' | '--border-width'>; export declare const Switch: FC<SwitchProps>;