UNPKG

1.51 kBTypeScriptView Raw
1import type { Assign } from "@ark-ui/react";
2import { Toggle as ArkToggle } from "@ark-ui/react/toggle";
3import { type HTMLChakraProps, type SlotRecipeProps, type UnstyledProp } from "../../styled-system";
4declare const useToggleStyles: () => Record<string, import("../..").SystemStyleObject>;
5export { useToggleStyles };
6export interface ToggleRootProviderBaseProps extends Assign<ArkToggle.RootBaseProps, SlotRecipeProps<"toggle">>, UnstyledProp {
7}
8export interface ToggleRootProviderProps extends HTMLChakraProps<"button", ToggleRootProviderBaseProps> {
9}
10export declare const ToggleRootProvider: import("react").ForwardRefExoticComponent<ToggleRootProviderProps & import("react").RefAttributes<HTMLButtonElement>>;
11export interface ToggleRootBaseProps extends Assign<ArkToggle.RootBaseProps, SlotRecipeProps<"toggle">>, UnstyledProp {
12}
13export interface ToggleRootProps extends HTMLChakraProps<"button", ToggleRootBaseProps> {
14}
15export declare const ToggleRoot: import("react").ForwardRefExoticComponent<ToggleRootProps & import("react").RefAttributes<HTMLButtonElement>>;
16export declare const TogglePropsProvider: React.Provider<ToggleRootBaseProps>;
17export interface ToggleIndicatorProps extends HTMLChakraProps<"div", ArkToggle.IndicatorBaseProps> {
18}
19export declare const ToggleIndicator: import("react").ForwardRefExoticComponent<ToggleIndicatorProps & import("react").RefAttributes<HTMLButtonElement>>;
20export declare const ToggleContext: (props: ArkToggle.ContextProps) => import("react").ReactNode;