{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toggle",
  "title": "Toggle",
  "description": "A button that stays pressed until it is pressed again, such as Bold in a text toolbar.",
  "dependencies": [
    "@base-ui/react@^1.8.0"
  ],
  "registryDependencies": [
    "@ouro/lib-appearance-hints",
    "@ouro/lib-class-name-check",
    "@ouro/lib-cn",
    "@ouro/lib-env",
    "@ouro/lib-touch-target",
    "@ouro/lib-use-dev-messages"
  ],
  "files": [
    {
      "path": "registry/ouro/components/ouro/toggle/toggle-styles.ts",
      "content": "import type { ComponentType, SVGProps } from \"react\";\nimport { radiusFor, sizeFor } from \"@/registry/ouro/lib/ouro/appearance-hints\";\n\nexport { iconClass, looks, shapes, sizes, squareClass, toggleBase, toggleHint, toggleShapeWarning, toggleSizeWarning, toggleVariantWarning };\nexport type { ToggleIcon, ToggleShape, ToggleSize, ToggleVariant };\n\n// Class strings, value lists and dev-message helpers shared by Toggle and ToggleGroup, apart\n// from the components so each component file exports only components (React Fast Refresh).\n// Class strings are literal so the app's Tailwind finds them when it compiles.\n\n/**\n * An icon component, such as one from `lucide-react` or `@heroicons/react`.\n *\n * @internal\n */\ntype ToggleIcon = ComponentType<SVGProps<SVGSVGElement>>;\n\n/**\n * The toggle's shape and feedback: Button's state layer (a wash in the text color on hover,\n * deeper while pressed), the press scale when motion is allowed, and the focus outline\n * in the ring color.\n *\n * @internal\n */\nconst toggleBase =\n  \"press relative isolate box-border inline-flex shrink-0 items-center justify-center align-middle \" +\n  \"border border-solid whitespace-nowrap \" +\n  \"no-underline select-none touch-manipulation [-webkit-tap-highlight-color:transparent] \" +\n  \"outline-ring outline-offset-2 focus-visible:outline-2 focus-visible:outline-solid \" +\n  \"before:pointer-events-none before:absolute before:-inset-px before:rounded-[inherit] before:[corner-shape:inherit] before:bg-current \" +\n  \"before:opacity-0 before:transition-opacity before:duration-(--ouro-duration-fast) before:ease-[ease] \" +\n  \"not-data-disabled:not-active:pointer-fine:hover:before:opacity-8 not-data-disabled:active:before:opacity-14 \" +\n  // Where corner-shape is missing, the surface slot paints the background, border and state layer instead (see ouro-base.css).\n  \"bg-(--ouro-bg) border-(--ouro-bd) [--ouro-sq-w:1px] \" +\n  \"not-data-disabled:not-active:pointer-fine:hover:[--ouro-state:0.08] not-data-disabled:active:[--ouro-state:0.14] \" +\n  \"motion-safe:not-data-disabled:active:scale-(--ouro-press-scale) \" +\n  \"disabled:cursor-not-allowed disabled:opacity-50 \" +\n  // Pressed: the primary tone at 10% behind text mixed 20% toward the foreground, as Button's soft look.\n  // Forced colours drop the tint, so a pressed toggle fills with the system highlight there. It opts\n  // out of forcing, or the label's backplate would hide HighlightText; its focus ring stays a system colour.\n  \"data-pressed:[--ouro-bg:color-mix(in_oklab,var(--primary)_10%,transparent)] data-pressed:text-[color-mix(in_oklab,var(--primary)_80%,var(--foreground))] contrast-more:data-pressed:[--ouro-bd:currentColor] \" +\n  \"forced-colors:data-pressed:forced-color-adjust-none forced-colors:data-pressed:[--ouro-bd:Highlight] forced-colors:data-pressed:[--ouro-bg:Highlight] \" +\n  \"forced-colors:data-pressed:text-[HighlightText] forced-colors:data-pressed:outline-[CanvasText]\";\n\n/**\n * Height and padding read two variables, so the toggle has one unprefixed `h-*` and `px-*`\n * class and the app's own replaces it at every width. Phones keep 16px text and the phone\n * height; the desktop density applies from `sm` with a fine pointer only, so a landscape\n * phone keeps it too.\n *\n * @internal\n * @claim \"Phones keep 16px text and the\" registry/ouro/components/ouro/toggle/toggle.touch.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.touch.test.tsx::keeps 44px toggles and 16px text on a landscape phone, past the sm breakpoint)\n * @claim \"Phones keep 16px text and the\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle looks > is 44px tall on phones and steps down with a fine pointer from sm, per size)\n * @claim \"Height and padding read two variables\" registry/ouro/components/ouro/toggle/toggle-styles.ts verify:fileLine(registry/ouro/components/ouro/toggle/toggle-styles.ts, /h-\\(--ouro-toggle-h\\)\\spx-\\(--ouro-toggle-px\\)/)\n * @claim \"Height and padding read two variables\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle > lets app layout classes win)\n */\nconst sizes = {\n  xs:\n    \"h-(--ouro-toggle-h) px-(--ouro-toggle-px) gap-1 text-sm sm:pointer-fine:text-xs [--ouro-toggle-h:calc(var(--spacing)*8)] [--ouro-toggle-px:calc(var(--spacing)*3)] \" +\n    \"sm:pointer-fine:[--ouro-toggle-h:calc(var(--spacing)*6)] sm:pointer-fine:[--ouro-toggle-px:calc(var(--spacing)*2.5)]\",\n  sm:\n    \"h-(--ouro-toggle-h) px-(--ouro-toggle-px) gap-1.5 text-sm [--ouro-toggle-h:calc(var(--spacing)*9)] [--ouro-toggle-px:calc(var(--spacing)*3)] \" +\n    \"sm:pointer-fine:[--ouro-toggle-h:calc(var(--spacing)*8)] sm:pointer-fine:[--ouro-toggle-px:calc(var(--spacing)*2.5)]\",\n  md:\n    \"h-(--ouro-toggle-h) px-(--ouro-toggle-px) gap-2 text-base sm:pointer-fine:text-sm [--ouro-toggle-h:calc(var(--spacing)*11)] [--ouro-toggle-px:calc(var(--spacing)*3.5)] \" +\n    \"sm:pointer-fine:[--ouro-toggle-h:calc(var(--spacing)*9)] sm:pointer-fine:[--ouro-toggle-px:calc(var(--spacing)*3)]\",\n  lg:\n    \"h-(--ouro-toggle-h) px-(--ouro-toggle-px) gap-2 text-base [--ouro-toggle-h:calc(var(--spacing)*12)] [--ouro-toggle-px:calc(var(--spacing)*4)] \" +\n    \"sm:pointer-fine:[--ouro-toggle-h:calc(var(--spacing)*11)]\",\n} as const;\n\n/**\n * A toggle size.\n *\n * @internal\n */\ntype ToggleSize = keyof typeof sizes;\n\n/**\n * `rect` has the theme's corners (`--radius`) and medium text; `pill` is fully rounded with\n * regular-weight text, as filter chips are. An icon-only pill is a circle.\n *\n * @internal\n * @claim \"`pill` is fully rounded with regular-weight\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle looks > rounds fully with regular-weight text with shape pill)\n */\nconst shapes = {\n  rect: \"rounded-ouro-lg font-medium [--ouro-sq-r:calc(var(--radius)*var(--ouro-radius-scale,1))]\",\n  pill: \"rounded-full font-normal\",\n} as const;\n\n/**\n * A toggle shape.\n *\n * @internal\n */\ntype ToggleShape = keyof typeof shapes;\n\n/**\n * An icon-only toggle is as wide as it is tall.\n *\n * @internal\n */\nconst squareClass = \"aspect-square px-0\";\n\n/**\n * `plain` has no border until it is pressed; `outline` always has one, in the primary tone while pressed.\n *\n * @internal\n * @claim \"`plain` has no border until it\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle looks > draws a border with variant outline)\n */\nconst looks = {\n  plain: \"[--ouro-bd:transparent] [--ouro-bg:transparent] text-foreground\",\n  outline: \"[--ouro-bd:var(--border)] [--ouro-bg:transparent] text-foreground data-pressed:[--ouro-bd:color-mix(in_oklab,var(--primary)_45%,transparent)]\",\n} as const;\n\n/**\n * A toggle look.\n *\n * @internal\n */\ntype ToggleVariant = keyof typeof looks;\n\n/**\n * The icon, at the label's size.\n *\n * @internal\n */\nconst iconClass = \"size-[1.25em] shrink-0\";\n\n/**\n * The fix for an appearance class on a toggle. Development only.\n *\n * @internal\n */\nfunction toggleHint(component: string): (token: string) => string {\n  return (token) => {\n    const size = sizeFor(token, [\"xs\", \"sm\", \"md\", \"lg\", \"lg\", \"lg\", \"lg\"]);\n    if (size) return `<${component} size=\"${size}\">`;\n    if (token === \"rounded-full\") return `<${component} shape=\"pill\">`;\n    if (token.startsWith(\"rounded\")) return radiusFor(token);\n    return `<${component} variant=\"outline\">`;\n  };\n}\n\n/**\n * The dev message for a variant that is not one of the toggle's, such as shadcn's `default`. Development only.\n *\n * @internal\n */\nfunction toggleVariantWarning(component: string, variant: string): readonly [string, string] {\n  const shadcn = variant === \"default\" || variant === \"ghost\";\n  return [`variant=\"${variant}\" is not a variant`, shadcn ? `<${component}>` : `<${component} variant=\"plain\">`];\n}\n\n/**\n * The dev message for a shape that is not one of the toggle's. A round guess points to `pill`. Development only.\n *\n * @internal\n */\nfunction toggleShapeWarning(component: string, shape: string): readonly [string, string] {\n  const round = /round|full|circle|chip/i.test(shape);\n  return [`shape=\"${shape}\" is not a shape`, round ? `<${component} shape=\"pill\">` : `<${component}>`];\n}\n\n/**\n * The dev message for a size that is not one of the toggle's. Development only.\n *\n * @internal\n */\nfunction toggleSizeWarning(component: string, size: string): readonly [string, string] {\n  return [`size=\"${size}\" is not a size`, `<${component} size=\"md\">`];\n}\n",
      "type": "registry:ui",
      "target": "@components/ouro/toggle/toggle-styles.ts"
    },
    {
      "path": "registry/ouro/components/ouro/toggle/toggle.tsx",
      "content": "\"use client\";\n\nimport { Toggle as BaseToggle } from \"@base-ui/react/toggle\";\nimport type { ButtonHTMLAttributes, JSX, Ref } from \"react\";\nimport { useAppearanceClassNameCheck } from \"@/registry/ouro/lib/ouro/class-name-check\";\nimport { cn } from \"@/registry/ouro/lib/ouro/cn\";\nimport { TouchTarget } from \"@/registry/ouro/lib/ouro/touch-target\";\nimport { useDevWarnings } from \"@/registry/ouro/lib/ouro/use-dev-messages\";\nimport {\n  iconClass,\n  looks,\n  shapes,\n  sizes,\n  squareClass,\n  toggleBase,\n  toggleHint,\n  toggleShapeWarning,\n  toggleSizeWarning,\n  toggleVariantWarning,\n  type ToggleIcon,\n} from \"@/registry/ouro/components/ouro/toggle/toggle-styles\";\n\n/** The props Toggle adds to the button attributes it passes through. */\nexport interface ToggleOwnProps {\n  /**\n   * What the toggle turns on, such as \"Bold\". It is the button's name and stays the same\n   * while pressed: `aria-pressed` says whether it is on. Required: every toggle needs a name.\n   * @claim \"Required: every toggle needs a name\" registry/ouro/components/ouro/toggle/toggle.test-d.ts verify:fileLine(registry/ouro/components/ouro/toggle/toggle.test-d.ts, /expectTypeOf<\\{\\spressed:\\strue\\s\\}>\\(\\)\\.not\\.toExtend<ToggleProps>/)\n   */\n  label: string;\n  /**\n   * Shows only the icon; the label stays the toggle's name for screen readers. Pass `icon` with it.\n   */\n  hideLabel?: boolean | undefined;\n  /** Icon before the label, or alone with `hideLabel`. Pass the component, not an element: `icon={BoldIcon}`. */\n  icon?: ToggleIcon | undefined;\n  /** Whether the toggle is on, when you control it. Pair it with `onPressedChange`. */\n  pressed?: boolean | undefined;\n  /** Whether the toggle starts on, when it keeps its own state. @default false */\n  defaultPressed?: boolean | undefined;\n  /** Called with the new state when the person presses the toggle. */\n  onPressedChange?: ((pressed: boolean) => void) | undefined;\n  /** Keeps the toggle from being pressed, and fades it. */\n  disabled?: boolean | undefined;\n  /**\n   * `plain` has no border until pressed; `outline` always has one. Either way a pressed toggle\n   * gets the primary tint. shadcn's `default` is `plain`.\n   * @default \"plain\"\n   * @claim \"`plain` has no border until pressed\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle looks > draws a border with variant outline)\n   */\n  variant?: \"plain\" | \"outline\" | (string & { 'From shadcn? default is \"plain\"; use \"plain\" or \"outline\"': never }) | undefined;\n  /**\n   * Control size, as Button's, plus `xs` for dense rows of filter chips: each is taller on phones\n   * and steps down to desktop density from the `sm` breakpoint with a fine pointer. `xs` is 24px\n   * there and keeps a 44px touch target on phones. shadcn's `default` is `md`.\n   * @default \"md\"\n   * @claim \"Control size, as Button's, plus\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle looks > is 44px tall on phones and steps down with a fine pointer from sm, per size)\n   * @claim \"Control size, as Button's, plus\" https://ui.shadcn.com/docs/components/toggle verify:urlOk(https://ui.shadcn.com/docs/components/toggle)\n   * @claim \"`xs` is 24px there and keeps\" registry/ouro/components/ouro/toggle/toggle.touch.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.touch.test.tsx::gives an extra-small pill a 44px hit area)\n   */\n  size?: \"xs\" | \"sm\" | \"md\" | \"lg\" | (string & { 'From shadcn? default is \"md\"': never }) | undefined;\n  /**\n   * `rect` has the theme's corners and medium text; `pill` is fully rounded with regular-weight\n   * text, for filter chips. With `hideLabel` a pill is a circle.\n   * @default \"rect\"\n   * @claim \"`pill` is fully rounded with regular-weight\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle looks > rounds fully with regular-weight text with shape pill)\n   */\n  shape?: \"rect\" | \"pill\" | (string & { 'Use \"rect\" or \"pill\"; rounded-full is \"pill\"': never }) | undefined;\n  /**\n   * Layout only: margins, grid placement (`mt-4`). Appearance classes warn in development;\n   * use `variant`, `size` and `shape` instead.\n   */\n  className?: string | undefined;\n  /** The button element. */\n  ref?: Ref<HTMLButtonElement> | undefined;\n\n  /**\n   * Not a prop. The label is a prop, so the toggle always has a name: `<Toggle label=\"Bold\">`.\n   *\n   * @claim \"The label is a prop, so\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle > with hideLabel shows only the icon, in a square, and keeps the label as the name)\n   * @claim \"The label is a prop, so\" registry/ouro/components/ouro/toggle/toggle.test.tsx verify:testExists(registry/ouro/components/ouro/toggle/toggle.test.tsx::Toggle development messages > warns when the label is empty)\n   */\n  children?: { 'Use <Toggle label=\"Bold\">': never };\n  /** Not a prop. Ouro UI uses `pressed`: `<Toggle pressed>`. */\n  isPressed?: { 'Use <Toggle pressed>': never };\n  /** Not a prop. A toggle is pressed, not checked: `<Toggle pressed>`. For a setting, use `Switch`. */\n  checked?: { 'Use <Toggle pressed>': never };\n  /** Not a prop. A toggle is pressed, not checked: `<Toggle defaultPressed>`. */\n  defaultChecked?: { 'Use <Toggle defaultPressed>': never };\n  /** Not a prop. Ouro UI uses `onPressedChange`: `<Toggle onPressedChange={(pressed) => ...}>`. */\n  onCheckedChange?: { 'Use <Toggle onPressedChange={(pressed) => ...}>': never };\n  /**\n   * Not a prop: a button's change event never fires. Use `onPressedChange`: `<Toggle onPressedChange={(pressed) => ...}>`.\n   *\n   * @claim \"Not a prop: a button's change\" registry/ouro/components/ouro/toggle/toggle.test-d.ts verify:fileLine(registry/ouro/components/ouro/toggle/toggle.test-d.ts, /\\{\\slabel:\\s\"Bold\";\\sonChange:\\s\\(\\)\\s=>\\svoid\\s\\}>\\(\\)\\.not\\.toExtend<ToggleProps>/)\n   */\n  onChange?: { 'Use <Toggle onPressedChange={(pressed) => ...}>': never };\n  /** Not a prop. Ouro UI uses `pressed`: `<Toggle pressed>`. */\n  selected?: { 'Use <Toggle pressed>': never };\n  /** Not a prop. Ouro UI uses `pressed`: `<Toggle pressed>`. */\n  isSelected?: { 'Use <Toggle pressed>': never };\n  /** Not a prop. Ouro UI uses `pressed`: `<Toggle pressed>`. */\n  active?: { 'Use <Toggle pressed>': never };\n  /** Not a prop. Ouro UI uses `icon`: `<Toggle icon={BoldIcon}>`. */\n  startIcon?: { 'Use <Toggle icon={BoldIcon}>': never };\n  /** Not a prop. A pressed toggle uses the primary tint; `variant=\"outline\"` adds a border. */\n  tone?: { 'Use <Toggle variant=\"outline\">': never };\n}\n\n/** Props for {@link Toggle}: its own props and the button attributes it passes through. */\nexport type ToggleProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof ToggleOwnProps | \"type\" | \"value\" | \"defaultValue\"> &\n  ToggleOwnProps;\n\n/**\n * A button that stays pressed until it is pressed again, such as Bold in a text toolbar. It\n * keeps one name (`label`) and reports its state with `aria-pressed`; a pressed toggle gets\n * the primary tint. Pass `icon` with `hideLabel` for an icon-only toggle; it has a 44px touch\n * target on phones.\n *\n * Use `ToggleGroup` instead for a row of related toggles with arrow-key focus. Use `Switch`\n * instead for a setting that takes effect at once, and `Checkbox` for a form value.\n *\n * @group Actions\n * @see https://ui.ouroboros.bot/docs/toggle\n *\n * @example\n * <Toggle label=\"Bold\" icon={BoldIcon} hideLabel pressed={bold} onPressedChange={setBold} />\n * <Toggle label=\"Show completed\" variant=\"outline\" defaultPressed />\n * <Toggle label=\"Unread\" variant=\"outline\" shape=\"pill\" size=\"xs\" />\n */\nexport function Toggle(props: ToggleProps): JSX.Element {\n  const {\n    label,\n    hideLabel,\n    icon: Icon,\n    pressed,\n    defaultPressed,\n    onPressedChange,\n    disabled,\n    variant: variantProp = \"plain\",\n    size: sizeProp = \"md\",\n    shape: shapeProp = \"rect\",\n    className,\n    ref,\n    // Guard props (hint types), dropped here so they never reach the DOM.\n    children,\n    isPressed,\n    checked,\n    defaultChecked,\n    onCheckedChange,\n    onChange,\n    selected,\n    isSelected,\n    active,\n    startIcon,\n    tone,\n    ...rest\n  } = props;\n  // A variant or size that is not one of Toggle's (a type error) warns and renders the default.\n  const variant = Object.hasOwn(looks, variantProp) ? (variantProp as keyof typeof looks) : \"plain\";\n  const size = Object.hasOwn(sizes, sizeProp) ? (sizeProp as keyof typeof sizes) : \"md\";\n  const shape = Object.hasOwn(shapes, shapeProp) ? (shapeProp as keyof typeof shapes) : \"rect\";\n  useAppearanceClassNameCheck(\n    \"Toggle\",\n    className,\n    process.env.NODE_ENV !== \"production\" ? toggleHint(\"Toggle\") : /* istanbul ignore next @preserve -- production only */ \"\",\n  );\n  useDevWarnings(\n    \"Toggle\",\n    process.env.NODE_ENV !== \"production\"\n      ? () => [\n          variant !== variantProp && toggleVariantWarning(\"Toggle\", String(variantProp)),\n          size !== sizeProp && toggleSizeWarning(\"Toggle\", String(sizeProp)),\n          shape !== shapeProp && toggleShapeWarning(\"Toggle\", String(shapeProp)),\n          !label && [\"label is empty, so the toggle has no name\", '<Toggle label=\"Bold\">'],\n          hideLabel && !Icon && [\"hideLabel leaves nothing to see without an icon\", `<Toggle label=\"${label}\" icon={BoldIcon} hideLabel>`],\n          children !== undefined && [\"children is not a prop; the label is\", `<Toggle label=\"${typeof children === \"string\" ? children : \"Bold\"}\">`],\n          isPressed !== undefined && [\"isPressed is not a prop\", \"<Toggle pressed>\"],\n          checked !== undefined && [\"checked is not a prop; a toggle is pressed\", \"<Toggle pressed>\"],\n          defaultChecked !== undefined && [\"defaultChecked is not a prop\", \"<Toggle defaultPressed>\"],\n          onCheckedChange !== undefined && [\"onCheckedChange is not a prop\", \"<Toggle onPressedChange={(pressed) => …}>\"],\n          onChange !== undefined && [\"onChange never fires on a toggle\", \"<Toggle onPressedChange={(pressed) => …}>\"],\n          selected !== undefined && [\"selected is not a prop\", \"<Toggle pressed>\"],\n          isSelected !== undefined && [\"isSelected is not a prop\", \"<Toggle pressed>\"],\n          active !== undefined && [\"active is not a prop\", \"<Toggle pressed>\"],\n          startIcon !== undefined && [\"startIcon is not a prop\", \"<Toggle icon={BoldIcon}>\"],\n          tone !== undefined && [\"tone is not a prop; a pressed toggle uses the primary tint\", '<Toggle variant=\"outline\">'],\n        ]\n      : /* istanbul ignore next @preserve -- production only */ undefined,\n  );\n  const iconOnly = Boolean(hideLabel && Icon);\n\n  return (\n    <BaseToggle\n      data-ouro-control=\"toggle\"\n      data-ouro-part=\"root\"\n      {...rest}\n      ref={ref}\n      pressed={pressed}\n      defaultPressed={defaultPressed}\n      onPressedChange={onPressedChange && ((next) => onPressedChange(next))}\n      disabled={disabled}\n      aria-label={hideLabel ? label : rest[\"aria-label\"]}\n      data-ouro=\"toggle\"\n      data-variant={variant}\n      data-shape={shape}\n      data-ouro-squircle={shape === \"rect\" ? \"\" : undefined}\n      className={cn(toggleBase, shapes[shape], sizes[size], looks[variant], iconOnly && squareClass, className)}\n    >\n      <TouchTarget />\n      {shape === \"rect\" && <span data-ouro-surface=\"\" aria-hidden=\"true\" style={{ zIndex: -1 }} />}\n      {Icon && <Icon aria-hidden=\"true\" className={cn(iconClass, \"relative\", !hideLabel && \"-ms-0.5\")} />}\n      {!iconOnly && <span className={cn(\"relative\", hideLabel && \"sr-only\")}>{label}</span>}\n    </BaseToggle>\n  );\n}\n",
      "type": "registry:ui",
      "target": "@components/ouro/toggle/toggle.tsx"
    }
  ],
  "docs": "A button that stays pressed until it is pressed again, such as Bold in a text toolbar. Import: import { Toggle } from \"@/components/ouro/toggle/toggle\", with @/components replaced by your components alias (aliases.components in components.json, such as ~/components). Also installed: the helpers it imports in lib/ouro. Needs ouro-base in your stylesheet: add that item once per app, from the same place as this one, if you have not. Docs: https://ui.ouroboros.bot/docs/toggle.md Ouro UI v1.3.257.",
  "type": "registry:ui"
}