TidalUI

Scroll area preview

A native horizontal, vertical, or two-axis scroll container with optional accessible region labelling and real edge actions.

pro · Essentials · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/scroll-area

Import components/ui/tidal.css, components/ui/scroll-area.css. Wrap installed components in tidal-scope.

Preview

Scroll area component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/scroll-area.css";
import{TidalScrollArea}from"./components/ui/scroll-area";
export default()=><div className="tidal-scope"><TidalScrollArea children={"value"}/></div>;

API and props

TidalScrollArea.children (required)
ReactNode

Required children value accepted by this exported component.

TidalScrollArea.contentProps
Omit<HTMLAttributes<HTMLDivElement>, "children"> | undefined

Optional content props value accepted by this exported component.

TidalScrollArea.contentRef
Ref<HTMLDivElement> | undefined

Optional content ref value accepted by this exported component.

TidalScrollArea.description
ReactNode

Optional description value accepted by this exported component.

TidalScrollArea.endAction
TidalScrollAction | undefined

Optional end action value accepted by this exported component.

TidalScrollArea.footer
ReactNode

Optional footer value accepted by this exported component.

TidalScrollArea.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalScrollArea.meta
ReactNode

Optional meta value accepted by this exported component.

TidalScrollArea.orientation
TidalScrollOrientation | undefined

Optional orientation value accepted by this exported component.

TidalScrollArea.regionLabel
string | undefined

Optional region label value accepted by this exported component.

TidalScrollArea.regionLabelledBy
string | undefined

Optional region labelled by value accepted by this exported component.

TidalScrollArea.startAction
TidalScrollAction | undefined

Optional start action value accepted by this exported component.

TidalScrollArea.title
ReactNode

Optional title value accepted by this exported component.

TidalScrollArea.viewportProps
Omit<HTMLAttributes<HTMLDivElement>, "role" | "aria-label" | "aria-labelledby" | "children"> | undefined

Optional viewport props value accepted by this exported component.

TidalScrollArea.viewportRef
Ref<HTMLDivElement> | undefined

Optional viewport ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas