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

package.dist.cjs.components.toggle.toggle.cjs Maven / Gradle / Ivy

Go to download

Responsive and accessible React UI components built with React and Emotion

The newest version!
"use strict";
"use client";
'use strict';

var toggle = require('@ark-ui/react/toggle');
var createSlotRecipeContext = require('../../styled-system/create-slot-recipe-context.cjs');

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

exports.ToggleContext = ToggleContext;
exports.ToggleIndicator = ToggleIndicator;
exports.TogglePropsProvider = TogglePropsProvider;
exports.ToggleRoot = ToggleRoot;
exports.ToggleRootProvider = ToggleRootProvider;
exports.useToggleStyles = useToggleStyles;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy