RayCraftDocs
v1.0.3 raycraft.dev
On this page

Grid

Free

12-column grid. Span sets the width of an item on every screen, and Sm, Md, Lg, Xl and Xxl change it from that breakpoint up (the same breakpoints as the Breakpoints page). Without Span an item takes the full row.

Example

Grid control

Parameters

Grid

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
ColumnsintColumn definitions: DataGridColumn elements.
SpacingintGap in multiples of 0.25rem.
StylestringInline style added to the root element.

GridItem

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
Lgint?Columns spanned from the lg breakpoint (992px) up.
Mdint?Columns spanned from the md breakpoint (768px) up.
Smint?Columns spanned from the sm breakpoint (576px) up.
Spanint?Columns the item spans on every screen size. Without it the item takes the full row.
StylestringInline style added to the root element.
Xlint?Columns spanned from the xl breakpoint (1200px) up.
Xxlint?Columns spanned from the xxl breakpoint (1400px) up.

Package

Grid is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.