@teaui/core
Version:
A high-level terminal UI library for Node
15 lines (14 loc) • 458 B
TypeScript
import { type LegendItem } from '../types.js';
import { type Props as LegendProps, type ComputedItem, AbstractLegend } from './AbstractLegend.js';
interface Props extends LegendProps {
items: LegendItem[];
}
export declare class Legend extends AbstractLegend {
#private;
constructor(props: Props);
update(props: Props): void;
get items(): LegendItem[];
set items(items: LegendItem[]);
collectItems(): ComputedItem[];
}
export {};