Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
ScrollBar
Scroll Bar using the host's styled scrolling presentation.
Import
import { ScrollBar } from "@dartwic/interface-sdk/ui";Declaration
export const ScrollBar: HostComponent<ScrollBarProps>;ScrollBarProps
Props accepted by a scroll bar.
export interface ScrollBarProps extends HostComponentProps {
/** Scroll-bar direction. */
orientation?: "horizontal" | "vertical";
}| Prop | Type | Requirement | Description |
|---|---|---|---|
orientation | "horizontal" | "vertical" | Optional | Scroll-bar direction. |
className | string | Optional | Additional Tailwind or host CSS classes. |
children | HostNode | Optional | Child content rendered by the host component. |
id | string | Optional | Optional DOM identifier. |
style | Record<string, unknown> | Optional | Inline style values passed to the host component. |