StarUI is a modern component library built with StarHTML and Datastar, providing beautiful, accessible, and interactive UI components.
Install StarUI using the CLI command star add [component] and start building your application with our pre-built components.
Yes! StarUI components are thoroughly tested, accessible, and used in production by many applications.
Installation
CLI
Install the component using the StarUI CLI:
star add accordionExamples
Collapsible Single
Single item open at a time, all items can be closed
Yes. It adheres to the WAI-ARIA design pattern...
Yes. It comes with default styles...
Yes. It's animated by default...
Rich Content
Single selection with icons, badges, and formatted content
Frequently Asked Questions
Find answers to common questions about our service
We accept all major credit cards, PayPal, and bank transfers.
- Visa, Mastercard, American Express
- PayPal and PayPal Credit
- ACH bank transfers (US only)
- Wire transfers for enterprise accounts
Your data security is our top priority. We use industry-standard encryption and comply with all major data protection regulations.
We offer a 30-day money-back guarantee. If you're not satisfied with our service within the first 30 days, you can request a full refund with no questions asked.
Our support team is available 24/7 through multiple channels:
- Live chat on our website
- Email: [email protected]
- Phone: 1-800-EXAMPLE
- Support ticket system
Multiple Selection
Multiple items can be open simultaneously
API Documentation
Explore available endpoints and methods
POST /api/auth/login Authenticate a user and receive a JWT token.
-
email- User's email address -
password- User's password
GET /api/users Retrieve a list of users.
GET /api/users/:id Retrieve a specific user by ID.
POST /api/users Create a new user account.
GET /api/projects List all projects for the authenticated user.
POST /api/projects Create a new project.
DELETE /api/projects/:id Delete a project (requires admin permissions).
With Forms
Single selection accordion containing interactive form elements
Account Settings
Manage your account preferences
Adds an extra layer of security to your account
Receive updates via email
Browser notifications for important updates
Product updates and special offers
Nested Accordions
Accordions nested within accordion items for hierarchical content
Project Structure
Browse project files and folders
Always One Open
Non-collapsible single selection - exactly one item must always be open
Course Curriculum
Web Development Bootcamp
-
Introduction to HTML15:30
-
CSS Basics22:15
-
Practice Exercise: Build a Landing Page
-
Quiz: HTML & CSS
-
Variables and Data Types18:45
-
Functions and Scope25:00
-
Arrays and Objects
This module will be available after completing previous modules.
API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
type |
Literal['single', 'multiple'] |
'single' |
Whether one or multiple items can be open |
collapsible |
bool |
False |
When type='single', allows closing all items |
value |
str | int | list[str | int] | None |
None |
Initially open item(s). Can be index (int) or custom value (str) |
signal |
str |
auto-generated |
Datastar signal name for state management |
cls |
str |
'' |
Additional CSS classes |