Layout Utilities

Use small display, flex, grid, positioning, and overflow helpers for local layout adjustments.

Layout utilities solve local, orthogonal adjustments. For reusable layout algorithms with content-driven wrapping and dedicated tokens, prefer the layout primitives.

Display and flexbox

  • Display: .d-block, .d-inline, .d-inline-block, .d-flex, .d-grid, and .d-none
  • Direction: .flex-row and .flex-col
  • Wrapping: .flex-wrap
  • Alignment: .items-center
  • Distribution: .justify-center, .justify-between, .justify-around, and .justify-end

Build a wrapping action row

Display, wrapping, alignment, and distribution remain independent choices.

3 selected

Bulk actions are available

Grid columns and axis gaps

.grid-cols-1, .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-6, and .grid-cols-12 set fixed track counts. Pair them with .d-grid and the .gap-x-* / .gap-y-* utilities.

Create a compact dashboard grid

Fixed column shorthands are useful when the track count is intentional; resize the preview to test its limits.

Revenue$48.2k
Orders1,284
Conversion4.8%

Use <layout-grid min-item-size="…"> when columns should collapse based on available space rather than remain fixed.

Position and overflow

  • Position: .pos-static, .pos-relative, .pos-absolute, .pos-fixed, and .pos-sticky
  • Overflow: .overflow-auto, .overflow-hidden, .overflow-scroll, and .overflow-visible

Contain positioned and overflowing content

The utilities establish behavior; component-specific inset and size values remain explicit inputs.

NewRelease notes

Scrollable content stays within the local panel.

Additional details remain available without expanding the entire page.

The surrounding radius clips positioned decoration.