ListSection
Data Display

ListSection

Add a section heading and optional action within a List.

ListSection renders a heading row inside a List. Pass action for a supporting control or sticky to keep the heading visible during scrolling.

Import

TSX
import { ListSection } from "@solarius/onset";

Props

ListSectionProps props
PropTypeDefaultDescription
childrenReactNode—Section heading text.
actionReactNode—Right-aligned content.
stickyboolean—Keeps the heading pinned while its section scrolls.

Example

ListSection