# SbContainer A centered content container with responsive max-width presets and optional gutters. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | MaxWidth | SbContainerMaxWidth | Lg | Maximum width preset for the container | | DisableGutters | bool | false | When true, removes horizontal padding | | Class | string? | null | Additional CSS classes | | Style | string? | null | Inline styles | | AdditionalAttributes | Dictionary\? | null | Additional HTML attributes | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | ChildContent | RenderFragment | Content to render inside the container | ## SbContainerMaxWidth Enum ```csharp public enum SbContainerMaxWidth { Sm, // 640px Md, // 768px Lg, // 1024px Xl, // 1280px Xxl, // 1536px Fluid // No max-width (full width) } ``` ## CSS Classes - `sb-container` - Base class - `sb-container--sm` - Small max-width (640px) - `sb-container--md` - Medium max-width (768px) - `sb-container--lg` - Large max-width (1024px) - `sb-container--xl` - Extra large max-width (1280px) - `sb-container--xxl` - 2X large max-width (1536px) - `sb-container--fluid` - Full width container - `sb-container--no-gutters` - Removes horizontal padding ## Examples ### Basic Usage ```razor

Page Title

Content is centered with a default max-width of 1024px.

``` ### Small Container ```razor

Narrow content area, great for forms.

``` ### Full Width ```razor ``` ### Without Gutters ```razor
Edge-to-edge content
``` ### Page Layout Use `SbContainer` inside your layout (e.g. Wish theme layouts use it for main content): ```razor Dashboard ``` ### Form Container ```razor Sign In Sign In ```