{
  "name": "survey-rating-form",
  "kind": "block",
  "primary": "card-ui",
  "page": "/catalog/ui-patterns/app/survey-rating-form/survey-rating-form.contents.html",
  "slots": [],
  "nested": [],
  "attrs": {},
  "html": "<card-ui>\n  <header>\n    <h3>Share your feedback</h3>\n    <p slot=\"description\">Your response helps us improve</p>\n  </header>\n  <section>\n    <col-ui gap=\"5\">\n      <field-ui label=\"Overall satisfaction\">\n        <rating-ui name=\"satisfaction\" value=\"0\" max=\"5\"></rating-ui>\n      </field-ui>\n      <field-ui label=\"Ease of use\">\n        <rating-ui name=\"ease-of-use\" value=\"0\" max=\"5\"></rating-ui>\n      </field-ui>\n      <field-ui label=\"Likelihood to recommend\">\n        <rating-ui name=\"recommend\" value=\"0\" max=\"5\"></rating-ui>\n      </field-ui>\n      <field-ui label=\"Anything else you'd like to share?\" hint=\"Optional — your thoughts help us prioritize\">\n        <textarea-ui name=\"feedback\" placeholder=\"Tell us more…\" rows=\"4\"></textarea-ui>\n      </field-ui>\n    </col-ui>\n  </section>\n  <footer>\n    <row-ui justify=\"end\">\n      <button-ui text=\"Submit feedback\" variant=\"primary\"></button-ui>\n    </row-ui>\n  </footer>\n</card-ui>",
  "source": "catalog/ui-patterns/app/survey-rating-form/survey-rating-form.contents.html",
  "metadata": {
    "domain": "forms",
    "description": "Survey form with star rating scales — three rating-ui questions (overall satisfaction, ease of use, likelihood to recommend) plus a textarea for open feedback.",
    "keywords": [
      "survey",
      "form",
      "rating",
      "scale",
      "star",
      "rating-ui",
      "satisfaction",
      "score",
      "feedback",
      "question",
      "NPS",
      "likert",
      "rating",
      "input",
      "stars"
    ]
  },
  "captured_at": "2026-06-07T19:28:13.657Z",
  "template": [
    {
      "id": "text",
      "component": "Text",
      "variant": "heading",
      "textContent": "Share your feedback"
    },
    {
      "id": "text-2",
      "component": "Text",
      "variant": "body",
      "slot": "description",
      "textContent": "Your response helps us improve"
    },
    {
      "id": "header",
      "component": "Header",
      "children": [
        "text",
        "text-2"
      ]
    },
    {
      "id": "satisfaction",
      "component": "Rating",
      "max": 5,
      "name": "satisfaction",
      "value": 0
    },
    {
      "id": "field",
      "component": "Field",
      "label": "Overall satisfaction",
      "children": [
        "satisfaction"
      ]
    },
    {
      "id": "ease-of-use",
      "component": "Rating",
      "max": 5,
      "name": "ease-of-use",
      "value": 0
    },
    {
      "id": "field-2",
      "component": "Field",
      "label": "Ease of use",
      "children": [
        "ease-of-use"
      ]
    },
    {
      "id": "recommend",
      "component": "Rating",
      "max": 5,
      "name": "recommend",
      "value": 0
    },
    {
      "id": "field-3",
      "component": "Field",
      "label": "Likelihood to recommend",
      "children": [
        "recommend"
      ]
    },
    {
      "id": "feedback",
      "component": "TextArea",
      "name": "feedback",
      "placeholder": "Tell us more…",
      "rows": "4"
    },
    {
      "id": "field-4",
      "component": "Field",
      "hint": "Optional — your thoughts help us prioritize",
      "label": "Anything else you'd like to share?",
      "children": [
        "feedback"
      ]
    },
    {
      "id": "column",
      "component": "Column",
      "gap": "5",
      "children": [
        "field",
        "field-2",
        "field-3",
        "field-4"
      ]
    },
    {
      "id": "section",
      "component": "Section",
      "children": [
        "column"
      ]
    },
    {
      "id": "button",
      "component": "Button",
      "text": "Submit feedback",
      "variant": "primary"
    },
    {
      "id": "row",
      "component": "Row",
      "justify": "end",
      "children": [
        "button"
      ]
    },
    {
      "id": "footer",
      "component": "Footer",
      "children": [
        "row"
      ]
    },
    {
      "id": "root",
      "component": "Card",
      "children": [
        "header",
        "section",
        "footer"
      ]
    }
  ]
}
