@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
56 lines (55 loc) • 1.39 kB
text/typescript
import { SwitchChangeEventHandler, SwitchContextType, SwitchIconProps, SwitchRootProps, SwitchThumbProps } from "./type.mjs";
import { styles } from "./style.mjs";
import * as react_jsx_runtime43 from "react/jsx-runtime";
//#region src/base-ui/Switch/atoms.d.ts
declare const useSwitchContext: () => SwitchContextType;
type SwitchRootInternalProps = Omit<SwitchRootProps, 'onCheckedChange' | 'onClick'> & {
onCheckedChange?: SwitchChangeEventHandler;
onClick?: SwitchChangeEventHandler;
};
declare const SwitchRoot: {
({
checked,
className,
defaultChecked,
onCheckedChange,
onClick,
size,
children,
disabled,
readOnly,
required,
inputRef,
id,
name,
...rest
}: SwitchRootInternalProps): react_jsx_runtime43.JSX.Element;
displayName: string;
};
declare const SwitchThumb: {
({
className,
pressedAnimation,
size,
transition,
children,
...rest
}: SwitchThumbProps): react_jsx_runtime43.JSX.Element;
displayName: string;
};
declare const SwitchIcon: {
({
children,
className,
position,
transition,
...rest
}: SwitchIconProps & {
children?: React.ReactNode;
size?: "default" | "small";
}): react_jsx_runtime43.JSX.Element;
displayName: string;
};
//#endregion
export { SwitchIcon, SwitchRoot, SwitchThumb, useSwitchContext };
//# sourceMappingURL=atoms.d.mts.map