Installation
CLI
Install the component using the StarUI CLI:
Examples
Copy to Clipboard
File header with a copy button using Datastar signals and the clipboard action
Inline Code
InlineCode for referencing symbols, commands, and parameters within prose
Components are imported from the registry, e.g. from components.button import Button. Each component accepts a cls parameter for additional Tailwind classes and **kwargs for HTML attributes.
Reactive state uses Signal objects. Toggle visibility with data_show, bind values with data_model, and handle events with data_on_click.
Run star add button card input to scaffold components, or star list to see what's available.
Documentation Layout
Installation instructions with per-command copy buttons and a quick-start guide
Installation
Install StarUI and initialize your project:
pip
uv
Add Components
Scaffold the components you need:
Terminal Output
Dark-themed code block styled as terminal output with real CLI commands
API Reference
| Component | Description |
|---|---|
CodeBlock |
Display multi-line code with syntax highlighting |
InlineCode |
Highlight short code snippets within text and documentation |