Skip to content
Esc
↑↓navigate↵open⌘Jpreview

UI components for Astro

Modern UI components for Astro and Tailwind CSS. Explore buttons, forms, dialogs, and navigation with live examples and source installation.

Find a control for a task, a container for related content, or a part for page navigation. Each guide shows the Astro composition and the install command. The Preview and Code tabs use the same example file. Descriptive example names identify the feature each file demonstrates.

Accordion for Astro
Build Astro accordions for FAQs and expandable content. Preview examples, install with shadcn, and read the keyboard and composition guide.
Alert Dialog for Astro
Astro confirmation dialogs for actions that need an explicit decision.
Alert for Astro
Inline Astro feedback with message, action, and semantic status styles.
Aspect Ratio for Astro
Astro containers that keep media and embeds at a chosen width-to-height ratio.
Attachment for Astro
Astro attachment parts for file and image previews with upload state and actions.
Avatar for Astro
Astro profile images and text fallbacks in a shared size system.
Badge for Astro
Small Astro labels for status, category, and counts.
Banner for Astro
Astro announcement containers with optional dismissal and stored visibility.
Breadcrumb for Astro
Astro navigation links that show a page’s position in a site.
Button for Astro
Astro button components with shadcn styles, sizes, loading states, and link examples. Preview each variant and install the editable source.
Button Group for Astro
Joined Astro buttons that share a border and corner radius.
Call to Action Button
Call to action (CTA) buttons drive conversions with a larger surface and hover effects. Built for Astro, Shadcn, and Tailwind CSS.
Card for Astro
Astro card sections with shared spacing, framed layouts, and optional actions.
Carousel for Astro
Embla carousel parts for Astro image and content sequences.
Checkbox for Astro
Native Astro checkboxes for independent choices and form values.
Code Block for Astro
Composable Astro code blocks with copy controls, line numbers, diff states, and syntax highlighting.
Collapsible for Astro
One expandable Astro panel for optional detail or secondary controls.
Color Picker for Astro
A full-featured color picker for Astro. Multiple color formats such as hex, hsl and oklch, plus alpha control, and more.
Combobox for Astro
A searchable Astro choice control with data-slot selection behavior.
Command for Astro
Searchable Astro command lists for navigation and page actions.
Context Menu for Astro
Astro menus that open from a right click or a long press. Built with the popover component, with support for keyboard navigation, multiple selection, and more.
Copy Button for Astro
Astro button with built-in copy to clipboard functionality. Copy text with or bind clipboard behavior to your own button. Built on top of Shadcn UI and Tailwind CSS.
Dialog for Astro
Build Astro modal dialogs with titles, descriptions, and actions. Explore shadcn style examples, installation, and keyboard behavior.
Drawer for Astro
Astro panel that slides into view from the screen edge, with swipe gestures, snapping, and nested interfaces.
Dropdown Menu for Astro
Astro action menus with item, checkbox, and radio compositions.
Empty for Astro
Astro empty-state parts for lists, searches, and unfinished setup.
Field for Astro
Astro field layouts that connect labels, controls, descriptions, and errors.
Floating Input for Astro
Astro text fields with a label that moves when focused or filled.
Form for Astro
Compose Astro forms with labels, inputs, validation messages, and buttons. See examples and install the source with the shadcn CLI.
Frame for Astro
Add a frame around components to create a subtle raised surface.
Glow Button for Astro
An Astro button with an animated glow behind the control.
Glow Card for Astro
An Astro container that paints a pointer glow on each child.
Group for Astro
Joined Astro buttons and controls with shared border and radius styles.
Header for Astro
Astro header parts for a site logo, navigation, and actions.
Horizontal Scroll for Astro
Move content sideways as the user scrolls down the page. Built for Astro with Shadcn & Tailwind CSS.
Hover Card for Astro
Astro link previews that show supporting information on hover or focus.
Icon for Astro
Astro icon rendering for Lucide symbols and Simple Icons brand marks.
Image Compare for Astro
Astro before-and-after pictures with a pointer and keyboard divider.
Input for Astro
Native Astro inputs with shared focus, error, and disabled styles.
Input Group for Astro
Astro inputs with attached text, icons, and action controls.
Item for Astro
Astro content rows for lists, linked summaries, and grouped details.
Kbd for Astro
Astro keyboard key labels for shortcuts and instructions.
Label for Astro
Native Astro labels that name and focus form controls.
Layout for Astro
Astro document parts for the page shell, head, body, and main content.
Lightbox Carousel for Astro
A carousel with items that when clicked, open the carousel in a lightbox dialog, allowing for a larger view with the same carousel layout.
Lightbox for Astro
Astro image zoom and media previews built on Dialog.
Lightbox Grid for Astro
Responsive Astro gallery grids with normal grid, bento, and masonry layouts.
Link for Astro
Astro anchors for page paths, external URLs, phone numbers, and obfuscated email.
Logo for Astro
Astro brand containers with optional home-page links.
Marquee for Astro
Astro moving content rows with direction, duration, and spacing controls.
Masonry Grid for Astro
A responsive Astro masonry layout for cards, images, and other content.
Meter for Astro
Astro range meters for capacity, usage, and other bounded measurements.
Native Select for Astro
Styled native HTML select controls for Astro forms.
Navigation Menu for Astro
Astro navigation groups with links and optional popup panels.
Pagination for Astro
Native Astro page links with current-page and previous/next styles.
Popover for Astro
Astro floating panels opened by a labelled control.
Price for Astro
Astro parts for amounts, currency labels, and billing periods.
Progress for Astro
Astro progress tracks for a known value or an unknown completion time.
Radio Group for Astro
Astro radio choices for one selected value in a related set.
Rating for Astro
Astro star displays for a score, with an optional control to set it.
Resizable for Astro
Astro panels with pointer and keyboard size controls.
Reveal for Astro
Reveal content as it enters view with fade-in and fade-up animations.
Scroll Area for Astro
Native scrolling for Astro panels, with custom tracks, keyboard access, and optional edge fades.
Scroll Spy for Astro
Track scroll progress on a page or section with visual indicators. Choose from built in variants or add your own.
Section for Astro
Astro section parts for page headings, content, and actions.
Segmented Control for Astro
Shared style recipes for related radio choices, navigation links, and pressed buttons.
Select for Astro
Astro selection popups with labelled options and data-slot behavior.
Separator for Astro
Astro dividers for visual grouping or a semantic content boundary.
Sheet for Astro
Astro side panels for secondary tasks and compact navigation.
Sidebar for Astro
Astro sidebar parts for navigation, grouped links, and layout controls.
Skeleton for Astro
Astro placeholder shapes that reserve space while content loads.
Slider for Astro
Astro range controls with data-slot pointer and keyboard input.
Spinner for Astro
Astro activity indicators for pending controls and page regions.
Switch for Astro
Astro on/off controls for settings with data-slot state handling.
Table for Astro
Semantic Astro table parts for records and comparisons.
Table of contents for Astro
Add a table of contents to Astro articles and docs. Explore heading links, composition examples, and source installation.
Tabs for Astro
Astro tab panels with shared pill and underline variants.
Textarea for Astro
Native Astro multiline fields with shared focus and error styles.
Theme Toggle for Astro
Add a toggle for light and dark mode switching to your Astro website. Works wiith SSR or on the client.
Toast for Astro
Astro notifications with status icons, actions, and promise states.
Toggle for Astro
Astro pressed-state buttons for local on/off actions.
Toggle Group for Astro
Astro toggle buttons that share one selection or several selections.
Tooltip for Astro
Astro hints for hover and keyboard focus on a labelled control.
Video for Astro
Play video files and YouTube URLs with shared controls. Use the same component for background video.

Build a complete page

Start with the controls and content parts your page needs. Use blocks for complete sections and templates for route and layout examples. Keep content in Astro props and slots so a reusable section does not depend on one site’s collection or URL structure. Read the Credits for the project foundation and design sources.