{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Icon Tab component",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!--\n  One icon-only tab (28 by 28, a 16 px glyph in the children). `label` is its accessible name. Arrow-key\n  movement between tabs is the job of IconTabs (see roving).\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import { variants } from \"../utils\";\n\n  /** IconTab: the classes of each value (shadcn/cva style). */\n  export const iconTabVariants = variants({\n    base:\n      \"inline-flex size-8 shrink-0 items-center justify-center text-muted-foreground inset-ring \" +\n      \"inset-ring-transparent [&>svg]:size-4 rounded\",\n    variants: {\n      state: {\n        default: \"\",\n        active: \"bg-card text-foreground inset-ring-border\",\n      },\n    },\n    defaultVariants: { state: \"default\" },\n  });\n\n  export type IconTabProps = {\n    active?: boolean;\n    label: string;\n    class?: string;\n    children?: Snippet;\n    onclick?: () => void;\n  };\n</script>\n\n<script lang=\"ts\">\n  import ButtonPlain from \"../compose/ButtonPlain.svelte\";\n  import { cn } from \"../utils\";\n\n  let { active = false, label, class: className, children, onclick }: IconTabProps = $props();\n</script>\n\n<ButtonPlain\n  type=\"button\"\n  role=\"tab\"\n  aria-label={label}\n  class={cn(iconTabVariants({ state: (active ? \"active\" : \"default\") }), className)}\n  aria-selected={active}\n  tabindex={(active ? 0 : -1)}\n  data-slot=\"icon-tab\"\n  data-state={(active ? \"active\" : \"default\")}\n  onclick={() => onclick?.()}\n>\n  {@render children?.()}\n</ButtonPlain>\n",
      "path": "components/icon-tab.svelte",
      "target": "components/icon-tab.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "icon-tab",
  "registryDependencies": [
    "button-plain",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Icon Tab",
  "type": "registry:component"
}
