Skip to content

Card

widgetslayout

Card: a bordered container with an optional title in the top border

Installation

$ bunx termuijs add card

Copies the source into src/components/card/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { Card } from '@termuijs/widgets'
ts
new Card(style: Partial<Style> = {}, opts: CardOptions = {})

API Reference

Card

PropTypeRequiredDescription
titlestringoptionalOptional title shown in the top border
borderColorColoroptionalColor for the border and title
#layout#card