tuil
ReferenceComponentsLayout and panes

ScrollAreaProps

ScrollAreaProps component contract.

View rawEdit

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

MemberTypeRequiredDescriptionRelated types
linesreadonly string[]YesThe lines member uses the readonly string[] contract.
heightnumberYesThe height member uses the number contract.
offsetnumber | undefinedNoThe offset member uses the number | undefined contract.
labelstring | undefinedNoThe label member uses the string | undefined contract.
idstring | undefinedNoThe id member uses the string | undefined contract.
onOffsetChange((offset: number) => void | Promise<void>) | undefinedNoThe onOffsetChange member uses the ((offset: number) => void | Promise<void>) | undefined contract.
sticky"top" | "bottom" | undefinedNoThe sticky member uses the "top" | "bottom" | undefined contract.

Source

View the secondary source reference

On this page