datui
Color scheme

Layout

FixedLayout

Pins content (a search bar, a bottom action) to the top or bottom of its panel while the rest scrolls.

import { FixedLayout } from "datui";

Playground

Pinned content
<FixedLayout vertical="top" filled>Pinned content</FixedLayout>

Examples

Bottom action

vertical="bottom" with filled paints the panel background and pads for the device safe area.

Checkout

  • Item 1
  • Item 2
  • Item 3
  • Item 4
  • Item 5
  • Item 6
  • Item 7
  • Item 8
  • Item 9
  • Item 10
  • Item 11
  • Item 12

Accessibility

  • Uses sticky positioning, so content stays in DOM and Tab order; nothing is taken out of the flow.
  • A pinned bar can cover content scrolled underneath — keep enough bottom padding in the panel so the last focusable element is not hidden.

API

FixedLayout

Pins content to the top or bottom of its panel or column while the rest scrolls (sticky positioning, so it always matches the parent's width). The bottom variant pads for the device safe area.

PropTypeDefaultDescription
asElementType<any, keyof IntrinsicElements>div
classNamestring—
filledbooleanfalsePaint the panel background behind the content.
vertical"top" | "bottom"topEdge to pin to.