import { IFormItemProps } from "@leight-core/leight"; import { SwitchProps } from "antd"; import { NamePath } from "rc-field-form/lib/interface"; import { FC } from "react"; export interface ISwitchItemProps extends Partial { /** * Field name: * * - https://ant.design/components/form/#NamePath */ field: NamePath; switchProps?: Partial; } /** * This one is just a tiny wrapper around common FormItem providing right binding to value props. * * Rest of props are sent to Antd SwitchItem component. * * Others: * * - https://ant.design/components/switch/ */ export declare const SwitchItem: FC;