{
  "$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\">\nimport { variants } from \"../utils\";\n\n/** IconTab: the classes of each value (shadcn/cva style). */\nexport 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\nexport type IconTabProps = {\n  active?: boolean;\n  label: string;\n  class?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport ButtonPlain from \"../compose/ButtonPlain.vue\";\nimport { cn } from \"../utils\";\n\nconst { active = false, label, class: className } = defineProps<IconTabProps>();\nconst emit = defineEmits<{ click: [] }>();\ndefineSlots<{ default?(): unknown }>();\n</script>\n\n<template>\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    @click=\"() => emit('click')\"\n  >\n    <slot />\n  </ButtonPlain>\n</template>\n",
      "path": "components/icon-tab.vue",
      "target": "components/icon-tab.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "icon-tab",
  "registryDependencies": [
    "button-plain",
    "utils"
  ],
  "runtime": "vue",
  "title": "Icon Tab",
  "type": "registry:component"
}
