{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Media Review component",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT. -->\n<!-- The featured review of MediaList in a muted card: a label with the stars, the text in quotes and the author. -->\n<script lang=\"ts\">\nimport type { MediaExtras, MediaListLabels } from \"../blocks/media-list.types\";\n\nexport type MediaReviewProps = {\n  extras: MediaExtras;\n  labels: MediaListLabels;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Group from \"../compose/Group.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Rating from \"../components/rating.vue\";\nimport { tpl } from \"../utils\";\n\nconst { extras, labels } = defineProps<MediaReviewProps>();\n</script>\n\n<template>\n  <template v-for=\"(r, i) in extras.reviews\" :key=\"r.id\">\n    <Stack v-if=\"(i < 1)\" gap=\"4\" align=\"stretch\" class=\"rounded bg-muted p-6\" data-slot=\"media-review\">\n      <Group gap=\"4\" align=\"center\" justify=\"between\" class=\"flex-wrap\">\n        <Text size=\"sm\" weight=\"medium\">\n          {{ labels.featured }}\n        </Text>\n        <Rating :value=\"r.rating\" :label=\"tpl(labels.rating, r.rating)\" />\n      </Group>\n      <Text size=\"base\">\n        {{ tpl(\"“{0}”\", r.text) }}\n      </Text>\n      <Text size=\"sm\" class=\"text-muted-foreground\">\n        {{ tpl(\"{0} · {1}\", r.author, r.date) }}\n      </Text>\n    </Stack>\n  </template>\n</template>\n",
      "path": "components/media-review.vue",
      "target": "components/media-review.vue"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "vue",
      "component"
    ]
  },
  "name": "media-review",
  "registryDependencies": [
    "group",
    "media-list",
    "rating",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Media Review",
  "type": "registry:component"
}
