Grid
IzzyBlazor.Grid in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly
and its doc comments.
Properties (8)
The number of equal columns (1 to 12), per breakpoint.
Column sizes as CSS grid-template-columns, per breakpoint: "240px 1fr" for a fixed side column, "2fr 1fr", "auto 1fr auto". Wins over Columns.
MinChildWidthLength?Stretchbool = falseWith MinChildWidth: when there are fewer items than fit in a row, stretch them to fill it. By default they keep their size and the rest of the row stays empty, so every item is the same width.
Space between cells, in spacing steps (0 to 16).
How items line up in their cells, block direction. Defaults to stretch.
Asstring = "div"The element to render: div on a Box; components built on it set their own (List a ul, Section a section).
ChildContentRenderFragment?The content.
Item props (from LayoutItemBase)
Margin on all sides, in spacing steps (-16 to 16; one step = 4px).
Width.
Minimum width.
Maximum width.
Growbool = falseWhether to grow into free space inside a Stack, Row or Column: <Box Grow>.
Shrinkbool = trueWhether to shrink when space is short inside a Stack, Row or Column. Defaults to true; Shrink="false" keeps the size.
Starting size inside a Stack, before growing or shrinking.
Alignment across the parent's direction, overriding the parent's Align for this component only, such as a button lined up with the bottom of labeled fields in a Row.
Surface props (from StyledComponentBase)
ColorSchemeColorScheme = ColorScheme.AutoPadding on all sides, in spacing steps (0 to 16; one step = 4px).
Background color.
Text color. When not set and Bg is a theme color, the matching contrast color is used automatically (Bg="Color.Primary" gets Color.OnPrimary text).
Corner radius.
Elevation.
Minimum height.
Height.
Maximum height; pair it with Overflow to scroll what doesn't fit.
What happens to content that doesn't fit: Overflow.Auto to scroll it.
A border on every side, in whole pixels (0 to 16), in BorderColor (the border token by default) and BorderStyle (solid by default). Like padding: BorderX and BorderY override an axis, the single sides override that. Sides you don't set keep the component's own border.
Borders at the top and bottom, such as a band with lines above and below. Replaces Border on this axis.
The border color, for borders set here or the component's own. Defaults to Border.
How borders set here are drawn (BorderStyle.Dashed, BorderStyle.Dotted), and the own border of a Card or a bordered EmptyState. Solid by default (dashed on an EmptyState).
Common props (from IzzyComponentBase)
Classstring?Extra CSS classes, merged after the component's own classes.
Stylestring?Inline style, appended after the component's generated custom properties.
VisibleFromBreakpoint?Shows the component only from this breakpoint up, such as header links for wide screens.
Events (0)
No events.
Parts (1)
Components written inside Grid, documented here with it.
GridItem
A cell of a Grid that spans several rows, or columns. Any component takes ColSpan; GridItem adds RowSpan.
How many rows it spans, per breakpoint.
Asstring = "div"The element to render: div on a Box; components built on it set their own (List a ul, Section a section).
ChildContentRenderFragment?The content.
Plus 25 surface props, 16 item props and 4 common props.
Types (2)
Align
enumCross-axis alignment of a Stack's children.
| Value | Description |
|---|---|
Stretch | Children stretch to fill the cross axis. |
Start | Aligned to the start. |
Center | Centered. |
End | Aligned to the end. |
Baseline | Aligned on their text baselines. |
Length
structA width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.
| Member | Description |
|---|---|
Sm | 640px (matches the |
Md | 768px (matches the |
Lg | 1024px (matches the |
Xl | 1280px (matches the |
Prose | A comfortable reading width, 68 characters. |
Full | 100% of the containing block. |
Auto |
|
FitContent |
|
MinContent |
|
MaxContent |
|
Px(double value) | Pixels. |
Rem(double value) | Root ems (16px each by default). |
Percent(double value) | Percent of the containing block. |
Ch(double value) | Character widths, for text measures. |
Vw(double value) | Percent of the viewport width. |
Dvh(double value) | Percent of the dynamic viewport height (accounts for mobile browser bars). |
Of(string css) | Any CSS length, such as |
Css string | The CSS value this length renders as. |