UNPKG

2.77 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { Switch as ArkSwitch } from "@ark-ui/react/switch";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4declare const useSwitchStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { useSwitchStyles };
6export interface SwitchRootProviderBaseProps extends Assign<ArkSwitch.RootProviderBaseProps, SlotRecipeProps<"switch">>, UnstyledProp {
7}
8export interface SwitchRootProviderProps extends HTMLChakraProps<"label", SwitchRootProviderBaseProps> {
9}
10export declare const SwitchRootProvider: import("react").ForwardRefExoticComponent<SwitchRootProviderProps & import("react").RefAttributes<HTMLLabelElement>>;
11export interface SwitchRootBaseProps extends Assign<ArkSwitch.RootBaseProps, SlotRecipeProps<"switch">>, UnstyledProp {
12}
13export interface SwitchRootProps extends HTMLChakraProps<"label", SwitchRootBaseProps> {
14}
15export declare const SwitchRoot: import("react").ForwardRefExoticComponent<SwitchRootProps & import("react").RefAttributes<HTMLLabelElement>>;
16export declare const SwitchPropsProvider: React.Provider<SwitchRootBaseProps>;
17export interface SwitchLabelProps extends HTMLChakraProps<"span", ArkSwitch.LabelBaseProps> {
18}
19export declare const SwitchLabel: import("react").ForwardRefExoticComponent<SwitchLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
20export interface SwitchControlProps extends HTMLChakraProps<"span", ArkSwitch.ControlBaseProps> {
21}
22export declare const SwitchControl: import("react").ForwardRefExoticComponent<SwitchControlProps & import("react").RefAttributes<HTMLSpanElement>>;
23export interface SwitchThumbProps extends HTMLChakraProps<"span", ArkSwitch.ThumbBaseProps> {
24}
25export declare const SwitchThumb: import("react").ForwardRefExoticComponent<SwitchThumbProps & import("react").RefAttributes<HTMLSpanElement>>;
26export interface SwitchIndicatorProps extends HTMLChakraProps<"span"> {
27 fallback?: React.ReactNode;
28}
29export declare const SwitchIndicator: import("react").ForwardRefExoticComponent<SwitchIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
30export interface SwitchThumbIndicatorProps extends HTMLChakraProps<"span"> {
31 fallback?: React.ReactNode;
32}
33export declare const SwitchThumbIndicator: import("react").ForwardRefExoticComponent<SwitchThumbIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
34export declare const SwitchContext: (props: ArkSwitch.ContextProps) => import("react").ReactNode;
35export declare const SwitchHiddenInput: import("react").ForwardRefExoticComponent<ArkSwitch.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
36export interface SwitchCheckedChangeDetails extends ArkSwitch.CheckedChangeDetails {
37}