UNPKG

@firecms/ui

Version:

Awesome Firebase/Firestore-based headless open-source CMS

15 lines (14 loc) 505 B
import React from "react"; export type BooleanSwitchProps = { value: boolean | null; className?: string; disabled?: boolean; size?: "smallest" | "small" | "medium" | "large"; } & ({ allowIndeterminate: true; onValueChange?: (newValue: boolean | null) => void; } | { allowIndeterminate?: false; onValueChange?: (newValue: boolean) => void; }); export declare const BooleanSwitch: React.ForwardRefExoticComponent<BooleanSwitchProps & React.RefAttributes<HTMLButtonElement>>;