{
  "$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{%- set v_value = og_def(p['value'], none) -%}\n{%- set v_label = og_def(p['label'], none) -%}\n{%- set v_max = og_def(p['max'], 5) -%}\n{%- set v_size = og_def(p['size'], 16) -%}\n{%- set v_full = og_round(og_min([v_max, og_max([0, v_value])])) -%}\n{%- set c_1 -%}\n  {%- for v_i in og_l(og_range(v_max)) %}\n    {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'star', 'Size': og_i(v_size), 'Class': og_s(('fill-foreground text-foreground' if og_t(og_lt(v_i, v_full)) else 'text-border'))}}) }}\n  {%- endfor %}\n{%- endset -%}\n{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['inline-flex items-center gap-0', og_def(p['className'], '')])), 'Attrs': og_attrs(['role', 'img', 'aria-label', v_label, 'data-slot', 'rating', 'data-value', v_full])}, 'children': c_1}) }}\n",
      "path": "blocks/rating.html.j2",
      "target": "blocks/rating.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "rating",
  "registryDependencies": [
    "box",
    "lucide-icon",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Rating",
  "type": "registry:component"
}
