@vectara/vectara-ui
Version:
Vectara's design system, codified as a React and Sass component library
16 lines (15 loc) • 643 B
TypeScript
import { OptionListItem } from "./types";
declare const SIZE: readonly ["s", "m", "l"];
export type Props<T> = {
className?: string;
options: OptionListItem<T>[];
onSelectOption?: (value: T) => void;
selected?: T | T[];
onScrollToBottom?: () => void;
isSelectable?: boolean;
isScrollable?: boolean;
size?: (typeof SIZE)[number];
isLoading?: boolean;
};
export declare const VuiOptionsList: <T extends unknown = unknown>({ className, options, onSelectOption, selected, onScrollToBottom, isSelectable, isScrollable, size, isLoading, ...rest }: Props<T>) => import("react/jsx-runtime").JSX.Element;
export {};