Blossom UI

Introduction

Learn what Blossom UI is: free React components written in TypeScript and styled with Tailwind CSS that you copy into your project.

Frequently asked questions

What is Blossom UI?

Blossom UI is a free and open source library of React components written in TypeScript and styled with Tailwind CSS. Each component is a single file: copy it into your project, add it with one command or install the whole library.

Do I have to install Blossom UI?

No. You can copy the file of the component you need, or add it with npx @blossomui/react add button, so you own the code and can change it freely. If you prefer a dependency, npm install @blossomui/react gives you the whole library. All the ways need React and Tailwind CSS.

Does Blossom UI work with Next.js and Vite?

Yes. It works in any React 18 project, including Vite and Next.js. Components that use hooks or events already have the "use client" directive for the Next.js App Router.

Which icon library do the components use?

None. Components that show an icon receive it as a React element in an icon prop, so you can use Lucide, React Icons, Heroicons, Phosphor or your own SVG. The documentation examples use lucide-react (https://lucide.dev).

How do I change the pink accent to my brand color?

Set the --blossom-accent CSS variable once, for example :root { --blossom-accent: #0f766e; }. Tabs, Pagination, Stepper, Forms, focus rings and the rest of the accents follow it. You can also set it on any parent element, or pass a color prop to a single component.

Can I translate the components to another language?

Yes. The texts are in English by default but every component with texts has a labels prop (or a label prop) to change them, and Pricing and the product card have formatPrice to show prices in your currency. Date pickers also take a locale.

Can I use my own colors?

Yes. Button, IconButton, Badge, Alert, Toast, ProgressBar, Spinner and Kbd accept any CSS color in the color prop, such as "#7c3aed" or "rgb(124 58 237)", in addition to the presets. The text color is chosen automatically to stay readable.

Does Blossom UI support dark mode?

Yes. Every component includes dark: variants and works with the class strategy of Tailwind CSS (darkMode: "class").

Which Tailwind CSS version do I need?

Tailwind CSS 3. The components use standard utilities and arbitrary values, with no custom plugin or configuration beyond enabling dark mode.

Which components include React hooks?

Components that manage their own state do: Modal, Select, MultiSelect, Toast (useToasts), Pagination, Stepper, Rating, Survey, the Pricing billing toggle and the dismissible Alert, Banner and Badge.

Getting started

  • Introduction
  • Installation
  • Changelog

Customization

  • Colors
  • Brand color
  • Texts and translation

Components

  • Accordion
  • Alert dialog
  • Alerts
  • Avatar
  • Badges
  • Banner
  • Breadcrumb
  • Buttons
  • Calendar
  • Cards
  • Carousel
  • Charts
  • Chip input
  • Collapsible
  • Color picker
  • Combobox
  • Command palette
  • Context menu
  • Copy button
  • Date picker
  • Drawer
  • Dropdown
  • Empty state
  • File upload
  • Footer
  • Forms
  • Hover card
  • Jumbotron
  • KBD
  • Menubar
  • Modal
  • Navbar
  • Navigation menu
  • Number input
  • OTP input
  • Pagination
  • Popover
  • Pricing
  • Progress
  • Rating
  • Resizable panels
  • Scroll area
  • Segmented control
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Spinners
  • Stats
  • Stepper
  • Survey
  • Table
  • Tabs
  • Time picker
  • Timeline
  • Timer button
  • Toasts
  • Tooltip
  • Transfer list
  • Tree