tuil
ReferencePackages@mwillbanks/tuil-inkAPI

useTerminalScrollArea

function exported by @mwillbanks/tuil-ink.

View rawEdit

function

Public function exported by @mwillbanks/tuil-ink.

export function useTerminalScrollArea(options: TerminalScrollAreaOptions): {
  readonly state: ScrollAreaState;
  readonly snapshot: ScrollSnapshot;
};

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
optionsTerminalScrollAreaOptionsYesSupplies the options value as TerminalScrollAreaOptions.TerminalScrollAreaOptions

Returns

{ readonly state: ScrollAreaState; readonly snapshot: ScrollSnapshot; } — Returns a value that satisfies { readonly state: ScrollAreaState; readonly snapshot: ScrollSnapshot; }.

Related types: ScrollAreaState, ScrollSnapshot

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-ink

On this page