Overview
Display status information and tips.Import
Usage
Live Preview
Run Locally
npm run tsx:core-gallery
Props
- items: Array of
{ text: string; color?: string; icon?: string; clickable?: boolean; onClick?: () => void } - separator?: string — Text between items (default
|). - showIcons?: boolean — Prepend icons.
- itemSpacing?: number — Reserved; items use separator.
Methods
- setItems(items), addItem(item), removeItem(index), updateItem(index, item).
- setItemText(i, text), setItemColor(i, color), setItemIcon(i, icon), setItemClickable(i, bool, onClick?).
- setSeparator(text), setShowIcons(bool), setItemSpacing(n), clearItems().
- getItemCount(), getItem(i), getAllItems(), findItemByText(text).
- getStatusBarWidth(), setStatusBarWidth(width).
Installation
Import
Quick Start
Production Examples
Best Practices
- Mantieni il contenuto poco intrusivo (altezza 1) e leggibile.
