@etsoo/materialui
Version:
TypeScript Material-UI Implementation
46 lines (45 loc) • 834 B
TypeScript
import React from "react";
import { FormControlProps } from "@mui/material/FormControl";
/**
* SwitchField props
*/
export type SwitchFieldProps = Omit<FormControlProps, "defaultValue"> & {
/**
* Helper text
*/
helperText?: React.ReactNode;
/**
* Label
*/
label?: string;
/**
* Field name
*/
name: string;
/**
* Checked
*/
checked?: boolean;
/**
* Active color
*/
activeColor?: string;
/**
* Start label
*/
startLabel?: string;
/**
* End label
*/
endLabel?: string;
/**
* Value, default is true
*/
value?: unknown;
};
/**
* SwitchField
* @param props Props
* @returns Component
*/
export declare function SwitchField(props: SwitchFieldProps): import("react/jsx-runtime").JSX.Element;