{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One to five stars (a review's grade, the average of a product). The value is read as the label; the stars themselves are decoration.",
  "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/parts/rating.json\n    One to five stars (a review's grade, the average of a product). The value is read as the label; the stars themselves are decoration.\n    Props (p): value, label, max, size, className. *}\n{var $v_value = ($p['value'] ?? null)}\n{var $v_label = ($p['label'] ?? null)}\n{var $v_max = ($p['max'] ?? 5)}\n{var $v_size = ($p['size'] ?? 16)}\n{var $v_full = og_round(og_min([$v_max, og_max([0, $v_value])]))}\n{capture $c_1}\n  {foreach og_l(og_range($v_max)) as $v_i}\n    {=og_include('icons/LucideIcon.latte', ['name' => 'star', 'size' => og_i($v_size), 'class' => og_s((og_t(og_lt($v_i, $v_full)) ? 'fill-foreground text-foreground' : 'text-border'))])|noescape}\n  {/foreach}\n{/capture}\n{=og_include('compose/Box.latte', ['class' => og_s(og_cnv(['inline-flex items-center gap-0', ($p['className'] ?? '')])), 'attrs' => og_attrs(['role', 'img', 'aria-label', $v_label, 'data-slot', 'rating', 'data-value', $v_full]), 'children' => (string) $c_1])|noescape}\n",
      "path": "blocks/rating.latte",
      "target": "blocks/rating.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "rating",
  "registryDependencies": [
    "box",
    "lucide-icon",
    "utils"
  ],
  "runtime": "latte",
  "title": "Rating",
  "type": "registry:component"
}
