{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The featured review of MediaList in a muted card: a label with the stars, the text in quotes and the author.",
  "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-review.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// MediaReviewProps are the props of MediaReview; the values are the JSON shapes of the TypeScript props.\ntype MediaReviewProps struct {\n\tExtras any `json:\"extras\"`\n\tLabels any `json:\"labels\"`\n}\n\n// The featured review of MediaList in a muted card: a label with the stars, the text in quotes and the author.\ntempl MediaReview(p MediaReviewProps) {\n\t{{ vExtras := p.Extras }}\n\t{{ vLabels := p.Labels }}\n\tfor vI, vR := range uiutils.L(uiutils.Get(vExtras, \"reviews\")) {\n\t\tif uiutils.Lt(float64(vI), float64(1)) {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{Class: \"rounded bg-muted p-6\", Attrs: uiutils.Attrs(\"data-slot\", \"media-review\")}}) {\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", Justify: \"between\", BoxProps: box.BoxProps{Class: \"flex-wrap\"}}) {\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"medium\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"featured\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@Rating(RatingProps{Value: uiutils.Get(vR, \"rating\"), Label: uiutils.Tpl(uiutils.Get(vLabels, \"rating\"), uiutils.Get(vR, \"rating\"))})\n\t\t\t\t}\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"base\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Tpl(\"“{0}”\", uiutils.Get(vR, \"text\"))) }\n\t\t\t\t}\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Tpl(\"{0} · {1}\", uiutils.Get(vR, \"author\"), uiutils.Get(vR, \"date\"))) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/media-review.templ",
      "target": "blocks/media-review.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "media-review",
  "registryDependencies": [
    "group",
    "kit-box",
    "kit-text",
    "rating",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Media Review",
  "type": "registry:component"
}
