Examples
MaxWidth picks the breakpoint the column stops growing at; MaxWidth.False removes the cap so you can set your own.
max-w-xs.
Gutters (on by default) adds 1rem of side padding; turn it off when the child brings its own.
API
<Container>
DaisyBlazorParameters
- Gutters bool= true
Adds horizontal padding (px-4) to the container; defaults to true.
- MaxWidth MaxWidth= MaxWidth.Large
Maximum width mapped to a max-w-screen-* class (e.g. Large to max-w-screen-lg); defaults to Large.
- Class string= null
Extra CSS classes merged onto the root container element.
- Style string= null
Inline CSS styles applied to the root container element.
Content
- ChildContent RenderFragment
Content rendered inside the centered container.
From MudContainer
Container keeps MudContainer's parameter names, so most markup moves over by
dropping the Mud prefix. See the migration guide for the shared enums, icons and services.