@teaui/core
Version:
A high-level terminal UI library for Node
22 lines (21 loc) • 684 B
TypeScript
import type { Viewport } from '../Viewport.js';
import { View, type Props as ViewProps } from '../View.js';
import { Style } from '../Style.js';
import { Size } from '../geometry.js';
import { type MouseEvent } from '../events/index.js';
import { System } from '../System.js';
interface Props extends ViewProps {
text: string;
style?: Style;
}
export declare class CollapsibleText extends View {
#private;
constructor(props: Props);
update(props: Props): void;
get text(): string;
set text(value: string);
naturalSize(available: Size): Size;
receiveMouse(event: MouseEvent, system: System): void;
render(viewport: Viewport): void;
}
export {};