{
  "name": "ScrollArea",
  "category": "Layout",
  "subcategory": null,
  "description": "Styled custom scrollbar container.",
  "thumbnail": "/preview-cards/scroll-area.png",
  "hasDocsPage": true,
  "nugetPackage": "Lumeo",
  "files": [
    "UI/ScrollArea/ScrollArea.razor"
  ],
  "dependencies": [],
  "packageDependencies": [],
  "cssVars": [
    "--color-border",
    "--color-muted",
    "--color-muted-foreground",
    "--radius"
  ],
  "api": {
    "name": "ScrollArea",
    "category": "Layout",
    "subcategory": null,
    "description": "Styled custom scrollbar container.",
    "nugetPackage": "Lumeo",
    "files": [
      "UI/ScrollArea/ScrollArea.razor"
    ],
    "namespace": "Lumeo",
    "inheritsFrom": null,
    "implements": [],
    "parameters": [
      {
        "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-border",
      "--color-muted",
      "--color-muted-foreground",
      "--radius"
    ],
    "examples": [
      {
        "title": "Vertical Scroll",
        "code": "<ScrollArea Class=\"h-72 rounded-md border p-4\">\n    <h4 class=\"mb-4 text-sm font-medium leading-none\">Tags</h4>\n    @foreach (var tag in _tags)\n    {\n        <div class=\"text-sm py-2 border-b\">@tag</div>\n    }\n</ScrollArea>"
      },
      {
        "title": "Chat Messages",
        "code": "<ScrollArea Class=\"h-64 rounded-md border p-4\">\n    <div class=\"space-y-3\">\n        @foreach (var msg in _messages)\n        {\n            <div class=\"@($\"flex flex-col {(msg.Mine ? \"items-end\" : \"items-start\")}\")>\n                <div class=\"@($\"rounded-lg px-3 py-2 text-sm {(msg.Mine ? \"bg-primary text-primary-foreground\" : \"bg-muted text-foreground\")}\")>\n                    @msg.Text\n                </div>\n            </div>\n        }\n    </div>\n</ScrollArea>"
      },
      {
        "title": "Horizontal Scroll",
        "code": "<ScrollArea Class=\"w-full whitespace-nowrap rounded-md border p-4\">\n    <div class=\"flex gap-4\">\n        @for (var i = 1; i <= 12; i++)\n        {\n            <div class=\"flex-shrink-0 w-32 h-20 rounded-md bg-muted flex items-center justify-center\">\n                Item @i\n            </div>\n        }\n    </div>\n</ScrollArea>"
      }
    ],
    "subComponents": {},
    "parseFailed": false,
    "parseError": null
  },
  "$schema": "https://lumeo.nativ.sh/registry-component-schema.json",
  "key": "scroll-area",
  "docsUrl": "https://lumeo.nativ.sh/components/scroll-area",
  "sourceUrl": [
    {
      "file": "UI/ScrollArea/ScrollArea.razor",
      "url": "https://github.com/Brain2k-0005/Lumeo/tree/master/src/Lumeo/UI/ScrollArea/ScrollArea.razor"
    }
  ],
  "source": [
    {
      "path": "UI/ScrollArea/ScrollArea.razor",
      "content": "@namespace Lumeo\n\n<div class=\"@CssClass\" @attributes=\"AdditionalAttributes\">\n    @ChildContent\n</div>\n\n@code {\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 => $\"relative overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/30 {Class}\".Trim();\n}\n"
    }
  ],
  "slots": [
    {
      "name": "ChildContent",
      "owner": "ScrollArea",
      "type": "RenderFragment?",
      "description": null
    }
  ],
  "serviceDependencies": [],
  "cascadingDependencies": [],
  "relatedComponents": [],
  "keyboardInteractions": [],
  "tests": [
    "tests/Lumeo.Tests/Components/ScrollArea/ScrollAreaTests.cs"
  ],
  "mdSummary": "# ScrollArea\n\nStyled custom scrollbar container.\n\n**Package:** `Lumeo` · **Category:** Layout\n**Docs:** https://lumeo.nativ.sh/components/scroll-area\n\n## Parameters\n| Owner | Name | Type | Default | Description |\n|---|---|---|---|---|\n| ScrollArea | ChildContent | `RenderFragment?` | `` |  |\n| ScrollArea | Class | `string?` | `` |  |\n| ScrollArea | AdditionalAttributes | `Dictionary<string, object>?` | `` |  |\n\n## Slots\n- `ChildContent` (ScrollArea) — 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<ScrollArea />\n```\n\n## CSS variables\n`--color-border`, `--color-muted`, `--color-muted-foreground`, `--radius`\n\n## Files\n- `UI/ScrollArea/ScrollArea.razor`\n"
}