@firecms/ui
Version:
Awesome Firebase/Firestore-based headless open-source CMS
19 lines (18 loc) • 685 B
TypeScript
import React from "react";
import { BooleanSwitchProps } from "./BooleanSwitch";
export type BooleanSwitchWithLabelProps = BooleanSwitchProps & {
position?: "start" | "end";
invisible?: boolean;
label?: React.ReactNode;
error?: boolean;
autoFocus?: boolean;
fullWidth?: boolean;
className?: string;
inputClassName?: string;
switchAdornment?: React.ReactNode;
};
/**
* Simple boolean switch.
*
*/
export declare const BooleanSwitchWithLabel: ({ value, position, size, invisible, onValueChange, error, label, autoFocus, disabled, className, fullWidth, inputClassName, switchAdornment, ...props }: BooleanSwitchWithLabelProps) => React.JSX.Element;