@firecms/ui
Version:
Awesome Firebase/Firestore-based headless open-source CMS
18 lines (17 loc) • 651 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;
};
/**
* Simple boolean switch.
*
*/
export declare const BooleanSwitchWithLabel: ({ value, position, size, invisible, onValueChange, error, label, autoFocus, disabled, className, fullWidth, inputClassName, ...props }: BooleanSwitchWithLabelProps) => import("react/jsx-runtime").JSX.Element;