asciitorium
Version:
an ASCII ui framework for web + cli
14 lines (13 loc) • 459 B
TypeScript
import { Component, ComponentProps } from '../core/Component';
import { LayoutType } from '../core/layouts/LayoutStrategy';
export interface BoxOptions extends Omit<ComponentProps, 'width' | 'height'> {
layout?: LayoutType;
width?: number;
height?: number;
}
export declare class Box extends Component {
constructor(options: BoxOptions);
private static calculateAutoWidth;
private static calculateAutoHeight;
draw(): string[][];
}