Raster — layout.grid
Zwölf-Spalten-Raster. Kinder bestimmen ihre Breite über node.layout.span; ohne Angabe gilt die Vorgabe aus dem columns-Prop. 1.2.0 (opt-in): columns = tiles richtet die Spalten nach der eigenen Breite (1, ab 36rem 2, ab 64rem 4; Container-Query über eine Hülle).
Layoutv1.2.2Layoutweb.documentweb.applicationdesktop.shell
Beispiele
3 Spalten (bricht mobil auf 1)
Produkt A
Raster-Zelle eins.
Produkt B
Raster-Zelle zwei.
Produkt C
Raster-Zelle drei.
auto-fit nach Mindestbreite
Auto 1
So viele Spalten wie passen.
Auto 2
Mindestbreite 240px.
Auto 3
Fluid ohne Media Query.
Auto 4
Vierte Zelle.
Responsive Props: mobil 2, ab md 4 Spalten — Abstand mobil sm, ab md lg
R1
base: 2 Spalten.
R2
ab md: 4 Spalten.
R3
Explizit pro Breakpoint.
R4
Statt eingebackenem Verhalten.
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
columns | string: auto | fill | 1 | 2 | 3 | 4 | 6 | 12 | tiles | "auto" |
gap | string: none | sm | md | lg | xl | "md" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | container | full | "standard" |
height | string: standard | half | full | "standard" |
backgroundImage | string | "" |
backgroundDim | string: standard | light | medium | strong | "standard" |
backgroundFixed | boolean | false |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Slot default: akzeptiert ui.*, component.*, section.*, layout.* · Pflicht