{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "section-blocks/star-rating",
  "version": "1.0.0",
  "title": "Star Rating",
  "category": "section-blocks-elements",
  "icon": "star-half",
  "description": "Show a rating from 0 to 5 stars in half-star steps, with crisp SVG stars, your own colors and an optional label such as “4.8 out of 5 from 1,200 reviews”.",
  "keywords": [
    "rating",
    "stars",
    "review",
    "score",
    "testimonial"
  ],
  "textdomain": "section-blocks",
  "attributes": {
    "rating": {
      "type": "number",
      "default": 4.5
    },
    "starSize": {
      "type": "number",
      "default": 20
    },
    "starColor": {
      "type": "string",
      "default": "#F59E0B"
    },
    "emptyColor": {
      "type": "string",
      "default": ""
    },
    "label": {
      "type": "string",
      "default": ""
    },
    "showNumber": {
      "type": "boolean",
      "default": false
    },
    "alignment": {
      "type": "string",
      "enum": [
        "left",
        "center",
        "right"
      ],
      "default": "left"
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "color": {
      "background": true,
      "text": true
    },
    "spacing": {
      "padding": true,
      "margin": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true
    }
  },
  "example": {
    "attributes": {
      "rating": 4.5,
      "starSize": 24,
      "showNumber": true,
      "label": "from 1,200 reviews"
    }
  },
  "editorScript": "file:./index.js",
  "style": [
    "file:./style-index.css",
    "section-blocks-shared"
  ],
  "render": "file:./render.php"
}