UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

37 lines (35 loc) 736 B
import { createCerberusPrimitive } from "./chunk-YJRAJNYI.js"; // src/components/switch/primitives.tsx import { Switch } from "@ark-ui/react/switch"; import { switchRecipe } from "styled-system/recipes"; var { withSlotRecipe, withNoRecipe } = createCerberusPrimitive(switchRecipe); var SwitchRoot = withSlotRecipe(Switch.Root, "root"); var SwitchLabel = withSlotRecipe( Switch.Label, "label" ); var SwitchControl = withSlotRecipe( Switch.Control, "control" ); var SwitchThumb = withSlotRecipe( Switch.Thumb, "thumb" ); var SwitchHiddenInput = withNoRecipe( Switch.HiddenInput ); export { SwitchRoot, SwitchLabel, SwitchControl, SwitchThumb, SwitchHiddenInput }; //# sourceMappingURL=chunk-GTAIWUFQ.js.map