Open-source library, Apache-2.0 licence
HeroUI
Accessible React components on React Aria and Tailwind CSS v4: forms, dates, menus, pop-ups, tables and colour pickers. 73 components, each running live with its code to copy. The first one under each heading is free; the rest come with paid plans.
heroui.comThe Apache-2.0 licenceSet up once
Set up once
Every HeroUI component needs HeroUI and its styles in your project, with Tailwind CSS. Set them up once, then paste in any component.
npm i @heroui/styles @heroui/react
@import "tailwindcss"; @import "@heroui/styles";
"use client";
import {Toast} from "@heroui/react";
export function Providers({children}: {children: React.ReactNode}) {
return (
<>
{children}
<Toast.Provider />
</>
);
}
Forms
16A text box with its label, ready for a form.
07Input With paid plansA plain one-line text box.
08Text area With paid plansA bigger text box for several lines of writing.
09Input with icon With paid plansA text box with an icon or a few words fixed at its start or end.
10Search field With paid plansA search box with an icon and a button that clears it.
11Number field With paid plansA box for a number, with minus and plus buttons on either side.
12One-time code With paid plansBoxes for a code sent by text or email, one digit in each.
13Checkbox With paid plansA box to tick for yes or no.
14Checkbox group With paid plansA labelled list of checkboxes where you can tick more than one.
15Radio group With paid plansA list of options where only one can be chosen.
16Label With paid plansThe name above a field, tied to it so a click on the name puts you in the field.
17Help text With paid plansA short grey line under a field that explains what to put in it.
18Field error With paid plansThe red line under a text field when what you typed does not pass.
19Error message With paid plansA red line that says what is missing, here when no tag is picked.
20Fieldset With paid plansA titled block of fields with its own save and cancel buttons.
21Form With paid plansA form that checks each field and shows what is wrong before it sends.
Dates and times
6A date you can type, or pick from a calendar that opens under it.
23Calendar With paid plansA month on screen to pick one day from.
24Range calendar With paid plansA month on screen to pick a run of days, from one date to another.
25Date range picker With paid plansA start and an end date, typed or picked from a calendar.
26Date field With paid plansA date typed in parts: month, day and year.
27Time field With paid plansA time typed in parts: hours, minutes and AM or PM.
Pop-ups
7A window over the page, with the page dimmed behind it.
36Alert dialog With paid plansA pop-up that asks you to confirm before something that cannot be undone.
37Drawer With paid plansA panel that slides in from the side of the screen.
38Bottom sheet With paid plansA panel that slides up from the bottom and can be dragged down to close.
39Popover With paid plansA small box that opens next to a button when you click it.
40Tooltip With paid plansA small label that shows when you point at something.
41Toast With paid plansA short message that slides in at the bottom and goes away on its own.
Sliders and switches
2Status and loading
6Coloured messages for news, updates, errors, success and warnings.
48Spinner With paid plansA turning circle that says something is loading.
49Progress bar With paid plansA bar that fills as a task gets done.
50Progress circle With paid plansA ring that fills as a task gets done.
51Meter With paid plansA bar that shows how full something is, like storage.
52Skeleton With paid plansGrey shapes with a shimmer that stand in for content while it loads.
Layout
4A white box with a title, a few lines of text and a link.
54Surface With paid plansA plain panel to put content on, in the theme's surface colour.
55Separator With paid plansA thin line between pieces of content, across or down.
56Toolbar With paid plansA bar of grouped tool buttons, like the top of a text editor.
Avatars
2Text
2Labels and tables
3Colour
6A swatch that opens a colour square and a row of preset colours.
68Colour swatch With paid plansA round sample of a colour.
69Swatch picker With paid plansA row of colour samples to choose one from.
70Colour field With paid plansA box to type a hex colour into, with a sample of it beside.
71Colour area With paid plansA square you drag across to set how strong and how bright a colour is.
72Colour slider With paid plansA slider for one part of a colour, here how strong it is.