Sha256: 3885f79a9b9dce9e58020e609f75e1fef0f173beaf6dadc962ca06ce91c3532a
Contents?: true
Size: 600 Bytes
Versions: 52
Compression:
Stored size: 600 Bytes
Contents
import type { Prettify } from '@inquirer/type'; import { type Theme } from '../theme.js'; import { type Layout } from './lines.js'; export declare function usePagination<T>({ items, active, renderItem, pageSize, loop, }: { items: ReadonlyArray<T>; /** The index of the active item. */ active: number; /** Renders an item as part of a page. */ renderItem: (layout: Prettify<Layout<T>>) => string; /** The size of the page. */ pageSize: number; /** Allows creating an infinitely looping list. `true` if unspecified. */ loop?: boolean; theme?: Theme; }): string;
Version data entries
52 entries across 26 versions & 1 rubygems