{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bloqra/star-rating",
  "version": "1.0.0",
  "title": "Star Rating",
  "category": "bloqra",
  "icon": "star-filled",
  "description": "Show a rating as stars — reviews, testimonials, product highlights. Any fraction renders exactly (4.7 of 5), the star can be any icon from the library, and an optional value and label sit beside it.",
  "keywords": [
    "rating",
    "stars",
    "review",
    "score",
    "testimonial",
    "feedback"
  ],
  "example": {
    "attributes": {
      "rating": 4.5,
      "showValue": true,
      "label": "Based on 128 reviews"
    }
  },
  "attributes": {
    "rating": {
      "type": "number",
      "default": 4
    },
    "maxRating": {
      "type": "number",
      "default": 5
    },
    "icon": {
      "type": "string",
      "default": "star"
    },
    "showValue": {
      "type": "boolean",
      "default": false
    },
    "label": {
      "type": "string",
      "default": ""
    },
    "textAlign": {
      "type": "string",
      "default": ""
    },
    "iconSize": {
      "type": "string",
      "default": ""
    },
    "iconGap": {
      "type": "string",
      "default": ""
    },
    "fillColor": {
      "type": "string",
      "default": ""
    },
    "emptyColor": {
      "type": "string",
      "default": ""
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "align": [
      "wide",
      "full"
    ],
    "color": {
      "text": true,
      "background": true,
      "gradients": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      }
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
      }
    },
    "spacing": {
      "padding": true,
      "margin": true
    },
    "shadow": true,
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontFamily": true,
      "__experimentalFontWeight": true,
      "__experimentalFontStyle": true,
      "__experimentalTextTransform": true,
      "__experimentalTextDecoration": true,
      "__experimentalLetterSpacing": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    }
  },
  "textdomain": "bloqra",
  "editorScript": [
    "bloqra-icons",
    "file:./index.js"
  ],
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css"
}