ReferenceComponentsLayout and panes
ScrollAreaProps
ScrollAreaProps component contract.
Type
export interface ScrollAreaProps {
readonly lines: readonly string[];
readonly height: number;
readonly offset?: number;
readonly label?: string;
readonly id?: string;
readonly onOffsetChange?: (offset: number) => void | Promise<void>;
readonly sticky?: "top" | "bottom";
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
lines | readonly string[] | Yes | The lines member uses the readonly string[] contract. | — |
height | number | Yes | The height member uses the number contract. | — |
offset | number | undefined | No | The offset member uses the number | undefined contract. | — |
label | string | undefined | No | The label member uses the string | undefined contract. | — |
id | string | undefined | No | The id member uses the string | undefined contract. | — |
onOffsetChange | ((offset: number) => void | Promise<void>) | undefined | No | The onOffsetChange member uses the ((offset: number) => void | Promise<void>) | undefined contract. | — |
sticky | "top" | "bottom" | undefined | No | The sticky member uses the "top" | "bottom" | undefined contract. | — |