Card
layout
Card: a bordered container with an optional title in the top border
Terminal
$termuijs render card
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
| Prop | Type | Required | Description |
|---|---|---|---|
title | string | optional | Optional title shown in the top border |
borderColor | Color | optional | Color for the border and title |