@coko/client
Version:
Client side common code for coko apps
11 lines (10 loc) • 361 B
TypeScript
import React, { ComponentProps } from 'react';
import { Switch as AntSwitch } from 'antd';
type LabelPosition = 'left' | 'right';
type SwitchProps = ComponentProps<typeof AntSwitch> & {
className?: string;
label?: string | null;
labelPosition?: LabelPosition;
};
declare const Switch: (props: SwitchProps) => React.ReactNode;
export default Switch;