ScrollArea API
API documentation for ScrollArea component
ScrollAreaRoot#
Props#
Defines valid properties in ScrollArea component.
State#
Defines valid state in ScrollArea component.
| name | type | default | description |
|---|---|---|---|
| orientationState | string | null | Current orientation of scrolling, either "vertical" or "horizontal". |
Exposes#
Defines the methods and properties exposed by ScrollArea component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ScrollArea component.
Types#
Instance
Instance of ScrollArea component.
| values |
|---|
| ComponentInstance<ScrollAreaRootProps, ScrollAreaRootState, ScrollAreaRootExposes> |
ScrollAreaViewport#
Props#
Defines valid properties in ScrollAreaViewport component.
Exposes#
Defines the methods and properties exposed by ScrollAreaViewport component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ScrollAreaViewport component.
| name | type | default | description |
|---|---|---|---|
| root | ScrollAreaViewportPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ScrollAreaViewport component.
| values |
|---|
| ComponentInstance<ScrollAreaViewportProps, ScrollAreaViewportState, ScrollAreaViewportExposes> |
ScrollAreaContent#
Props#
Defines valid properties in ScrollAreaContent component.
Exposes#
Defines the methods and properties exposed by ScrollAreaContent component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ScrollAreaContent component.
| name | type | default | description |
|---|---|---|---|
| root | ScrollAreaContentPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ScrollAreaContent component.
| values |
|---|
| ComponentInstance<ScrollAreaContentProps, ScrollAreaContentState, ScrollAreaContentExposes> |
ScrollAreaThumbY#
Props#
Defines valid properties in ScrollAreaThumbY component.
Exposes#
Defines the methods and properties exposed by ScrollAreaThumbY component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ScrollAreaThumbY component.
| name | type | default | description |
|---|---|---|---|
| root | ScrollAreaThumbYPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ScrollAreaThumbY component.
| values |
|---|
| ComponentInstance<ScrollAreaThumbYProps, ScrollAreaThumbYState, ScrollAreaThumbYExposes> |
ScrollAreaThumbX#
Props#
Defines valid properties in ScrollAreaThumbX component.
Exposes#
Defines the methods and properties exposed by ScrollAreaThumbX component.
Interfaces#
PassThroughOptions
Defines passthrough(pt) options of ScrollAreaThumbX component.
| name | type | default | description |
|---|---|---|---|
| root | ScrollAreaThumbXPassThroughType<HTMLAttributes<HTMLButtonElement>> | null | Used to pass attributes to the root's DOM element. |
Types#
Instance
Instance of ScrollAreaThumbX component.
| values |
|---|
| ComponentInstance<ScrollAreaThumbXProps, ScrollAreaThumbXState, ScrollAreaThumbXExposes> |
useScrollArea#
Props#
Defines valid properties in useScrollArea.
| name | type | default | description |
|---|---|---|---|
| step | number | 5 | Step factor to scroll the content while pressing the arrow keys. |
State#
Defines valid state in useScrollArea.
| name | type | default | description |
|---|---|---|---|
| orientationState | string | null | Current orientation of scrolling, either "vertical" or "horizontal". |
Exposes#
Defines the methods and properties exposed by useScrollArea.
Types#
Instance
Instance of useScrollArea headless.
| values |
|---|
| HeadlessInstance<useScrollAreaProps, useScrollAreaState, useScrollAreaExposes> |