Skip to main content
Module

x/tui/src/components/box.ts>Box

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
class Box
extends Component
import { Box } from "https://deno.land/x/tui@2.1.4/src/components/box.ts";

Component for creating simple non-interactive box

Examples

Example 1

new Box({
 parent: tui,
 theme: {
   base: crayon.bgBlue,
 },
 rectangle: {
   column: 1,
   row: 1,
   height: 5,
   width: 10,
 },
 zIndex: 0,
});

Properties

drawnObjects: { box: BoxObject; }

Methods

draw(): void