Components
ScrollArea
Scrollable container with custom design-system scrollbars. children are
placed inside a Base UI viewport, so give the root (or viewportClassName) an
explicit height/width for scrolling to engage.
Import from "@instruments/materia-ui/components/scroll-area".
Usage
Best practices
Give the root (or
viewportClassName) an explicit height/width - without a bounded size the content never overflows and the custom scrollbar never engages.ScrollArearenders its ownScrollBar; reach forScrollBardirectly only when hand-composing a Base UI scroll area.Use
asto change the element (a tag); userenderonly to swap in a component (e.g. a router Link). Neverrender={<Box as=…/>}- passasdirectly.
Props
ScrollArea
ScrollBar
Composition
Used by
DataGrid, QuickView, ScrollFrame, SegmentedControl, Tabs, TagSelector