Installation
How to install and set up StarUI in your project.
Get started with StarUI in minutes. Build beautiful, accessible components with Python and StarHTML.
Quick Start
Import and use components immediately
from starui import Button
Button("Get Started")
Button("View Components", variant="outline")Installation
Install the StarUI CLI
Install StarUI globally using pip to access the CLI commands.
pip install staruiInitialize your project
Set up StarUI in your project directory. This creates the configuration and installs dependencies.
star initCreates starui.json configuration file
Configures component paths and settings
Installs required dependencies
StarHTML, Tailwind CSS, and component utilities
Add components to your project
Install individual components with their dependencies automatically resolved.
# Add a single component
star add button
# Add multiple components at once
star add button input card tabs
# List all available components
star listUsage Examples
Basic Component Usage
Import and use components directly in your StarHTML templates
Interactive Components
Add reactivity using Datastar for dynamic user interfaces
Clicked:
Onwards
The Constellation
34+ components. Every one interactive, every one yours to modify.
Browse Components →The Field Guide
Signals, reactivity, the server-first model — learn the framework beneath the components.
Visit StarHTML →The Source
Apache 2.0. Read the code, open an issue, send a patch.
View on GitHub →