{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The topics of MediaList as card rows: a glyph tile, the name, the count and an arrow.",
  "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/organisms/media-topics.json\n    The topics of MediaList as card rows: a glyph tile, the name, the count and an arrow.\n    Props (p): extras, labels. *}\n{var $v_extras = ($p['extras'] ?? null)}\n{var $v_labels = ($p['labels'] ?? null)}\n{capture $c_7}\n  {capture $c_1}\n    {=og_text(og_get($v_labels, ['list']))}\n  {/capture}\n  {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_1])|noescape}\n  {foreach og_l(og_get($v_extras, ['topics'])) as $v_c}\n    {var $v_i = $iterator->counter0}\n    {if og_t(og_lt($v_i, 5))}\n      {capture $c_6}\n        {capture $c_2}\n          {=og_include('icons/LucideIcon.latte', ['name' => og_s(og_get($v_c, ['icon'])), 'size' => 16])|noescape}\n        {/capture}\n        {=og_include('compose/Inline.latte', ['class' => 'flex size-8 shrink-0 items-center justify-center rounded bg-primary text-primary-foreground', 'children' => (string) $c_2])|noescape}\n        {capture $c_5}\n          {capture $c_3}\n            {=og_text(og_get($v_c, ['name']))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_3])|noescape}\n          {capture $c_4}\n            {=og_text(og_tpl(og_get($v_labels, ['count']), [og_get($v_c, ['count'])]))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_4])|noescape}\n        {/capture}\n        {=og_include('compose/Stack.latte', ['gap' => '0', 'class' => 'min-w-0 flex-1', 'children' => (string) $c_5])|noescape}\n        {=og_include('icons/LucideIcon.latte', ['name' => 'arrow-right', 'size' => 16])|noescape}\n      {/capture}\n      {=og_include('blocks/menu-entry.latte', ['p' => ['href' => og_get($v_c, ['href']), 'className' => og_cnv(['rounded bg-card inset-ring inset-ring-border flex w-full items-center gap-4 p-4']), 'variant' => 'block', 'testid' => 'media-topic', 'block' => true], 'children' => og_markup($c_6)])|noescape}\n    {/if}\n  {/foreach}\n{/capture}\n{=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'attrs' => og_attrs(['data-slot', 'media-topics']), 'children' => (string) $c_7])|noescape}\n",
      "path": "blocks/media-topics.latte",
      "target": "blocks/media-topics.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "media-topics",
  "registryDependencies": [
    "inline",
    "lucide-icon",
    "menu-entry",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Media Topics",
  "type": "registry:component"
}
