{
  "name": "Spacer",
  "category": "Layout",
  "subcategory": null,
  "description": "Flex-grow spacer that pushes siblings apart.",
  "thumbnail": "/preview-cards/spacer.png",
  "hasDocsPage": true,
  "nugetPackage": "Lumeo",
  "files": [
    "UI/Spacer/Spacer.razor"
  ],
  "dependencies": [],
  "packageDependencies": [],
  "cssVars": [
    "--color-foreground"
  ],
  "api": {
    "name": "Spacer",
    "category": "Layout",
    "subcategory": null,
    "description": "Flex-grow spacer that pushes siblings apart.",
    "nugetPackage": "Lumeo",
    "files": [
      "UI/Spacer/Spacer.razor"
    ],
    "namespace": "Lumeo",
    "inheritsFrom": null,
    "implements": [],
    "parameters": [
      {
        "name": "Size",
        "type": "string?",
        "default": null,
        "description": null,
        "isCascading": false,
        "captureUnmatched": false
      },
      {
        "name": "Class",
        "type": "string?",
        "default": null,
        "description": null,
        "isCascading": false,
        "captureUnmatched": false
      },
      {
        "name": "AdditionalAttributes",
        "type": "Dictionary<string, object>?",
        "default": null,
        "description": null,
        "isCascading": false,
        "captureUnmatched": true
      }
    ],
    "events": [],
    "enums": [],
    "records": [],
    "cssVars": [
      "--color-foreground"
    ],
    "examples": [
      {
        "title": "Flex Spacer",
        "code": "<Flex Align=\"center\">\n    <Text Weight=\"semibold\">Brand</Text>\n    <Spacer />\n    <Button Variant=\"Button.ButtonVariant.Outline\" Size=\"Button.ButtonSize.Sm\">Login</Button>\n</Flex>"
      },
      {
        "title": "Fixed Size",
        "code": "<Stack Direction=\"Stack.StackDirection.Horizontal\" Align=\"center\">\n    <Avatar />\n    <Spacer Size=\"4\" />\n    <Stack Gap=\"0\">\n        <Text Weight=\"medium\" Size=\"sm\">Jane Doe</Text>\n        <Text Color=\"muted\" Size=\"xs\">jane@example.com</Text>\n    </Stack>\n</Stack>"
      }
    ],
    "subComponents": {},
    "parseFailed": false,
    "parseError": null
  },
  "$schema": "https://lumeo.nativ.sh/registry-component-schema.json",
  "key": "spacer",
  "docsUrl": "https://lumeo.nativ.sh/components/spacer",
  "sourceUrl": [
    {
      "file": "UI/Spacer/Spacer.razor",
      "url": "https://github.com/Brain2k-0005/Lumeo/tree/master/src/Lumeo/UI/Spacer/Spacer.razor"
    }
  ],
  "source": [
    {
      "path": "UI/Spacer/Spacer.razor",
      "content": "@namespace Lumeo\n\n@if (string.IsNullOrEmpty(Size))\n{\n    <div class=\"@($\"flex-1 {Class}\".Trim())\" @attributes=\"AdditionalAttributes\"></div>\n}\nelse\n{\n    <div class=\"@($\"w-{Size} h-{Size} {Class}\".Trim())\" @attributes=\"AdditionalAttributes\"></div>\n}\n\n@code {\n    [Parameter] public string? Size { get; set; }\n    [Parameter] public string? Class { get; set; }\n    [Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object>? AdditionalAttributes { get; set; }\n}\n"
    }
  ],
  "slots": [],
  "serviceDependencies": [],
  "cascadingDependencies": [],
  "relatedComponents": [],
  "keyboardInteractions": [],
  "tests": [
    "tests/Lumeo.Tests/Components/Spacer/SpacerTests.cs"
  ],
  "mdSummary": "# Spacer\n\nFlex-grow spacer that pushes siblings apart.\n\n**Package:** `Lumeo` · **Category:** Layout\n**Docs:** https://lumeo.nativ.sh/components/spacer\n\n## Parameters\n| Owner | Name | Type | Default | Description |\n|---|---|---|---|---|\n| Spacer | Size | `string?` | `` |  |\n| Spacer | Class | `string?` | `` |  |\n| Spacer | AdditionalAttributes | `Dictionary<string, object>?` | `` |  |\n\n## Slots\n- (none)\n\n## Events\n- (none)\n\n## Sub-components\n- (none)\n\n## Cascading values it expects\n- (none)\n\n## Services it injects\n- (none)\n\n## Keyboard\n—\n\n## Example\n```razor\n<Spacer />\n```\n\n## CSS variables\n`--color-foreground`\n\n## Files\n- `UI/Spacer/Spacer.razor`\n"
}