{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "An editor file tab (40 px high): a file icon, the label and a close button. `preview` marks a tab that is not pinned yet. Keyboard (Enter and Space activate, Delete closes) is the programmer's behind the click and close events.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/patterns/editor-tab.json\n    An editor file tab (40 px high): a file icon, the label and a close button. `preview` marks a tab that is not pinned yet. Keyboard (Enter and Space activate, Delete closes) is the programmer's behind the click and close events.\n    Props (p): label, closeLabel, active, preview, className, icon (slot). -#}\n{%- set v_label = og_def(p['label'], none) -%}\n{%- set v_closeLabel = og_def(p['closeLabel'], none) -%}\n{%- set v_active = og_def(p['active'], false) -%}\n{%- set v_preview = og_def(p['preview'], false) -%}\n{%- set c_4 -%}\n  {%- set c_3 -%}\n    {{ og_slot(og_def(p['icon'], none))|safe }}\n    {%- set c_1 -%}\n      {{ og_text(v_label) }}\n    {%- endset -%}\n    {{ og_include('compose/inline.html.j2', {'p': {'Class': og_s(og_cnv(['text-xs text-foreground', ('font-semibold italic' if og_t(v_preview) else 'font-bold')])), 'Attrs': og_attrs(['data-slot', 'editor-tab-label'])}, 'children': c_1}) }}\n    {%- set c_2 -%}\n      {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'x', 'Size': 16}}) }}\n    {%- endset -%}\n    {{ og_include('compose/button.html.j2', {'p': {'Variant': 'ghost', 'Size': 'sm', 'Layout': 'icon', 'Class': 'p-0 [&>svg]:size-4', 'AriaLabel': og_s(v_closeLabel), 'Attrs': og_attrs(['tabindex', -1, 'data-slot', 'editor-tab-close'])}, 'children': c_2}) }}\n  {%- endset -%}\n  {{ og_include('compose/inline.html.j2', {'p': {'Class': 'flex h-10 items-center gap-2 px-3', 'Attrs': og_attrs(['data-slot', 'editor-tab-content'])}, 'children': c_3}) }}\n{%- endset -%}\n{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex h-10 shrink-0 cursor-pointer flex-col justify-center data-[state=active]:bg-card [&_svg]:text-muted-foreground', 'border-r border-border', og_def(p['className'], '')])), 'Attrs': og_attrs(['role', 'tab', 'aria-selected', v_active, 'tabindex', (0 if og_t(v_active) else -1), 'data-slot', 'editor-tab', 'data-state', ('active' if og_t(v_active) else 'default')])}, 'children': c_4}) }}\n",
      "path": "blocks/editor-tab.html.j2",
      "target": "blocks/editor-tab.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "editor-tab",
  "registryDependencies": [
    "box",
    "button",
    "inline",
    "lucide-icon",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Editor Tab",
  "type": "registry:component"
}
