{
  "name": "Container",
  "category": "Layout",
  "subcategory": null,
  "description": "Responsive max-width wrapper with consistent page padding.",
  "thumbnail": "/preview-cards/container.png",
  "hasDocsPage": true,
  "nugetPackage": "Lumeo",
  "files": [
    "UI/Container/Container.razor"
  ],
  "dependencies": [],
  "packageDependencies": [],
  "cssVars": [
    "--color-foreground"
  ],
  "api": {
    "name": "Container",
    "category": "Layout",
    "subcategory": null,
    "description": "Responsive max-width wrapper with consistent page padding.",
    "nugetPackage": "Lumeo",
    "files": [
      "UI/Container/Container.razor"
    ],
    "namespace": "Lumeo",
    "inheritsFrom": null,
    "implements": [],
    "parameters": [
      {
        "name": "MaxWidth",
        "type": "string?",
        "default": "\"lg\"",
        "description": null,
        "isCascading": false,
        "captureUnmatched": false
      },
      {
        "name": "Center",
        "type": "bool",
        "default": "true",
        "description": null,
        "isCascading": false,
        "captureUnmatched": false
      },
      {
        "name": "Padding",
        "type": "string?",
        "default": "\"4\"",
        "description": null,
        "isCascading": false,
        "captureUnmatched": false
      },
      {
        "name": "ChildContent",
        "type": "RenderFragment?",
        "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": "Centered Content",
        "code": "<Container MaxWidth=\"md\">\n    <p>Content centered within max-w-md</p>\n</Container>"
      },
      {
        "title": "Different Max Widths",
        "code": "<Container MaxWidth=\"sm\">Small container</Container>\n<Container MaxWidth=\"md\">Medium container</Container>\n<Container MaxWidth=\"lg\">Large container</Container>\n<Container MaxWidth=\"xl\">Extra large container</Container>"
      },
      {
        "title": "MaxWidth — interactive",
        "code": "<Container MaxWidth=\"lg\">\n    Content constrained to max-w-lg\n</Container>"
      }
    ],
    "subComponents": {},
    "parseFailed": false,
    "parseError": null
  },
  "$schema": "https://lumeo.nativ.sh/registry-component-schema.json",
  "key": "container",
  "docsUrl": "https://lumeo.nativ.sh/components/container",
  "sourceUrl": [
    {
      "file": "UI/Container/Container.razor",
      "url": "https://github.com/Brain2k-0005/Lumeo/tree/master/src/Lumeo/UI/Container/Container.razor"
    }
  ],
  "source": [
    {
      "path": "UI/Container/Container.razor",
      "content": "@namespace Lumeo\n\n<div class=\"@CssClass\" @attributes=\"AdditionalAttributes\">@ChildContent</div>\n\n@code {\n    [Parameter] public string? MaxWidth { get; set; } = \"lg\";\n    [Parameter] public bool Center { get; set; } = true;\n    [Parameter] public string? Padding { get; set; } = \"4\";\n    [Parameter] public RenderFragment? ChildContent { get; set; }\n    [Parameter] public string? Class { get; set; }\n    [Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object>? AdditionalAttributes { get; set; }\n\n    private string CssClass\n    {\n        get\n        {\n            var maxWidth = !string.IsNullOrEmpty(MaxWidth) ? $\"max-w-{MaxWidth}\" : \"\";\n            var center = Center ? \"mx-auto\" : \"\";\n            var padding = !string.IsNullOrEmpty(Padding) ? $\"px-{Padding}\" : \"\";\n            return $\"w-full {maxWidth} {center} {padding} {Class}\".Trim();\n        }\n    }\n}\n"
    }
  ],
  "slots": [
    {
      "name": "ChildContent",
      "owner": "Container",
      "type": "RenderFragment?",
      "description": null
    }
  ],
  "serviceDependencies": [],
  "cascadingDependencies": [],
  "relatedComponents": [],
  "keyboardInteractions": [],
  "tests": [
    "tests/Lumeo.Tests/Components/Container/ContainerTests.cs"
  ],
  "mdSummary": "# Container\n\nResponsive max-width wrapper with consistent page padding.\n\n**Package:** `Lumeo` · **Category:** Layout\n**Docs:** https://lumeo.nativ.sh/components/container\n\n## Parameters\n| Owner | Name | Type | Default | Description |\n|---|---|---|---|---|\n| Container | MaxWidth | `string?` | `\"lg\"` |  |\n| Container | Center | `bool` | `true` |  |\n| Container | Padding | `string?` | `\"4\"` |  |\n| Container | ChildContent | `RenderFragment?` | `` |  |\n| Container | Class | `string?` | `` |  |\n| Container | AdditionalAttributes | `Dictionary<string, object>?` | `` |  |\n\n## Slots\n- `ChildContent` (Container) — RenderFragment slot\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<Container />\n```\n\n## CSS variables\n`--color-foreground`\n\n## Files\n- `UI/Container/Container.razor`\n"
}