Card
A titled panel — a themed bordered container with an optional title and drop shadow. Children go in its default slot.
Import
import { Card } from '@sigx/terminal';
Usage
/** @jsxImportSource @sigx/terminal */
import { component, defineApp, Card } from '@sigx/terminal';
const App = component(() => {
return () => (
<Card title="Summary" dropShadow>
<text>Build completed in 1.2s.</text>
<br />
<text>3 warnings, 0 errors.</text>
</Card>
);
});
defineApp(<App />).mount({ clearConsole: true });
Props
| Prop | Type | Notes |
|---|---|---|
title | string | caption in the top border |
dropShadow | boolean | cast a shadow on the right/bottom edges |
The card's content is its default slot.
See also
- Layout & Styling — the
Box,RowandColprimitives.
