UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

56 lines (55 loc) 1.47 kB
import { LobeSwitchChangeEventHandler, LobeSwitchContextType, LobeSwitchIconProps, LobeSwitchRootProps, LobeSwitchThumbProps } from "./type.mjs"; import { styles } from "./style.mjs"; import * as react_jsx_runtime0 from "react/jsx-runtime"; //#region src/LobeSwitch/atoms.d.ts declare const useLobeSwitchContext: () => LobeSwitchContextType; type LobeSwitchRootInternalProps = Omit<LobeSwitchRootProps, 'onCheckedChange' | 'onClick'> & { onCheckedChange?: LobeSwitchChangeEventHandler; onClick?: LobeSwitchChangeEventHandler; }; declare const LobeSwitchRoot: { ({ checked, className, defaultChecked, onCheckedChange, onClick, size, children, disabled, readOnly, required, inputRef, id, name, ...rest }: LobeSwitchRootInternalProps): react_jsx_runtime0.JSX.Element; displayName: string; }; declare const LobeSwitchThumb: { ({ className, pressedAnimation, size, transition, children, ...rest }: LobeSwitchThumbProps): react_jsx_runtime0.JSX.Element; displayName: string; }; declare const LobeSwitchIcon: { ({ children, className, position, transition, ...rest }: LobeSwitchIconProps & { children?: React.ReactNode; size?: "default" | "small"; }): react_jsx_runtime0.JSX.Element; displayName: string; }; //#endregion export { LobeSwitchIcon, LobeSwitchRoot, LobeSwitchThumb, useLobeSwitchContext }; //# sourceMappingURL=atoms.d.mts.map