Skip to main content
Module

x/tui/mod.ts>ComponentOptions

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
interface ComponentOptions
import { type ComponentOptions } from "https://deno.land/x/tui@1.0.2/mod.ts";

Interface defining object that {Component}'s constructor can interpret

Properties

tui: Tui

Parent tui, used for retrieving canvas and adding event listeners

optional
view: ViewComponent

Component that can manipulate drawing position on the canvas by replacing tui element with fake one

optional
theme: Partial<Theme>

Theme defining look of component

optional
rectangle: Rectangle

Position and size of component

optional
zIndex: number

Components get rendered based on this value, lower values get rendered first