Astroria
Copied to clipboard!

UI Components

1 min read

UI Components

25 components for building user interfaces.


Button

Action buttons with multiple variants.

Sizes


Badge

Status indicators and labels.

Default Success Warning Danger Info

Card

Content cards with optional links.

Getting Started

Learn how to set up Astroria Docs in your project.


CardGrid

Grid layout for multiple cards.

Installation

Install via npm, pnpm, or yarn

Configuration

Set up astro.config.mjs

Content

Write MDX documentation

Deploy

Ship to Cloudflare Pages

Three Columns

Fast

<1s FCP

Accessible

WCAG 2.1 AA

SEO

100/100 score


Hero

Landing page hero sections.

Build Beautiful Docs


ThemeToggle

Dark/light mode toggle button.


ThemeSwitcher

Color theme picker (5 presets).


Site footer with links and branding. See live example at page bottom.

Component: @components/ui/Footer.astro


Avatar

User avatars with image/initials fallback.

With Initials


AvatarGroup

Stacked avatar groups with overflow count.


Skeleton

Loading placeholders.

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Spinner

Loading spinner animation.

Loading...
Loading...
Loading...
Loading...

Toast

Toast notifications.


Alert

Alert messages with variants.


Chip

Small status/tag chips.

Default Primary Success Warning Danger Removable

Divider

Section dividers with optional labels.


EmptyState

Empty state placeholders.

No messages yet

When you receive messages, they will appear here.

Send a message

Dialog overlay component.

Example Modal

This is a modal dialog example. Click outside or press the close button to dismiss.


Dropdown select menu.


Tooltip

Hover tooltips.


Popover

Popover content.


ProgressSteps

Step progress indicator.

1
Account
2
Profile
3
Preferences
4
Review

ToggleSwitch

Toggle switch input.


CheckboxGroup

Checkbox group input.

Select your interests

RadioGroup

Radio button group input.

Choose a plan