shineout
Version:
Shein 前端组件库
16 lines (12 loc) • 495 B
text/typescript
import React from 'react'
import { GetInputableProps } from '../Form/Props'
import { SimpleSwitchProps, CheckboxProviderProps } from '../Checkbox/Props'
export type SwitchPropsWithInput = GetInputableProps<CheckboxProviderProps<SimpleSwitchProps>, boolean>
/**
* @title Switch
*/
export type SwitchProps = Omit<SwitchPropsWithInput, 'filterSameChange'>
export declare class Switch extends React.Component<SwitchProps, any> {
render(): JSX.Element
}
export type SwitchType = typeof Switch