All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.esm.components.toggle.toggle.js Maven / Gradle / Ivy

Go to download

Responsive and accessible React UI components built with React and Emotion

The newest version!
"use strict";
"use client";
import { Toggle } from '@ark-ui/react/toggle';
import { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';

const {
  withProvider,
  withContext,
  useStyles: useToggleStyles,
  PropsProvider
} = createSlotRecipeContext({ key: "toggle" });
const ToggleRootProvider = withProvider(Toggle.Root, "root", { forwardAsChild: true });
const ToggleRoot = withProvider(
  Toggle.Root,
  "root",
  { forwardAsChild: true }
);
const TogglePropsProvider = PropsProvider;
const ToggleIndicator = withContext(Toggle.Indicator, "indicator", { forwardAsChild: true });
const ToggleContext = Toggle.Context;

export { ToggleContext, ToggleIndicator, TogglePropsProvider, ToggleRoot, ToggleRootProvider, useToggleStyles };




© 2015 - 2025 Weber Informatics LLC | Privacy Policy