Skip to main content
Horizontal flex container.
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Row",
      "default": "Row",
      "type": "string"
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling"
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "Component"
      }
    },
    "gap": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          ],
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "align": {
      "enum": [
        "start",
        "center",
        "end",
        "stretch",
        "baseline"
      ],
      "type": [
        "string",
        "null"
      ],
      "default": null
    },
    "justify": {
      "enum": [
        "start",
        "center",
        "end",
        "between",
        "around",
        "evenly",
        "stretch"
      ],
      "type": [
        "string",
        "null"
      ],
      "default": null
    }
  },
  "required": [
    "type"
  ]
}