Status & Feedback
$
Toast
PROStyled notification messages for terminal output with success, error, warning, and info presets. Supports timestamps.
static output4 typesnotification
# Preview
BOOTING PREVIEW
# Usage
import { toast, Toast } from '@taracod/termui';
console.log(toast.success('Build completed!'));
console.log(toast.error('Connection failed'));
console.log(toast.warn('Deprecated API'));
console.log(toast.info('Server running on port 3000'));
const t = new Toast({ timestamp: true });
console.log(t.success('Deployed to production'));# API
| Prop | Type | Default | Description |
|---|---|---|---|
| type | ToastType | success | success, error, warning, info |
| message | string | required | Main notification text |
| timestamp | boolean | false | Show timestamp in header |
| width | number | auto | Fixed width or auto-sized toast |