Class MudPaper
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
A surface for grouping other components.
public class MudPaper : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudPaper
- Implements
- Inherited Members
- Extension Methods
Constructors
MudPaper()
public MudPaper()
Properties
ChildContent
The content within this component.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Elevation
The size of the drop shadow.
[Parameter]
[Category("Appearance")]
public int Elevation { get; set; }
Property Value
Remarks
Defaults to 1
. A higher number creates a heavier drop shadow. Use a value of 0
for no shadow.
Height
The height of this component.
[Parameter]
[Category("Appearance")]
public string? Height { get; set; }
Property Value
Remarks
Defaults to null
. Can be a pixel height (150px
), percentage (30%
), or other CSS height value.
MaxHeight
The maximum height of this component.
[Parameter]
[Category("Appearance")]
public string? MaxHeight { get; set; }
Property Value
Remarks
Defaults to null
. Can be a pixel height (150px
), percentage (30%
), or other CSS height value.
MaxWidth
The maximum width of this component.
[Parameter]
[Category("Appearance")]
public string? MaxWidth { get; set; }
Property Value
Remarks
Defaults to null
. Can be a pixel width (150px
), percentage (30%
), or other CSS width value.
MinHeight
The minimum height of this component.
[Parameter]
[Category("Appearance")]
public string? MinHeight { get; set; }
Property Value
Remarks
Defaults to null
. Can be a pixel height (150px
), percentage (30%
), or other CSS height value.
MinWidth
The minimum width of this component.
[Parameter]
[Category("Appearance")]
public string? MinWidth { get; set; }
Property Value
Remarks
Defaults to null
. Can be a pixel width (150px
), percentage (30%
), or other CSS width value.
Outlined
Displays an outline around this component.
[Parameter]
[Category("Appearance")]
public bool Outlined { get; set; }
Property Value
Remarks
Defaults to false
.
Square
Displays a square shape.
[Parameter]
[Category("Appearance")]
public bool Square { get; set; }
Property Value
Remarks
Defaults to false
.
Can be overridden by Rounded.
When true
, the border-radius
is set to 0
.
Stylename
protected string Stylename { get; }
Property Value
Width
The width of this component.
[Parameter]
[Category("Appearance")]
public string? Width { get; set; }
Property Value
Remarks
Defaults to null
. Can be a pixel width (150px
), percentage (30%
), or other CSS width value.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder