pitsi/ui
HomeDocsComponentsAnimationsBlocksTemplates
1
1
Sections
  • Get Started
  • Components
  • Animations
  • MCP Server
  • Forms
  • Changelog
Get Started
  • Installation
  • CLI
  • llms.txt
Components
  • Accordion
  • Alert Dialog
  • Alert
  • Aspect Ratio
  • Avatar
  • Badge
  • Breadcrumb
  • Button Group
  • Button
  • Calendar
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Container
  • Context Menu
  • Data Table
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Flex
  • Form
  • Grid
  • Hover Card
  • Input Group
  • Input OTP
  • Input
  • Item
  • Kbd
  • Label
  • Menubar
  • Native Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Responsive
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Spacer
  • Spinner
  • Squircle
  • Switch
  • Table
  • Tabs
  • Textarea
  • Theme Toggle
  • Toggle Group
  • Toggle
  • Tooltip
  • Typography
  • Unicorn Wrapper
Animations
  • Background Image Parallax
  • Blend Mode Cursor
  • Card Swipe Carousel
  • Cards Parallax
  • Cursor Hover Mask
  • Floating Image Gallery
  • Mouse Hover Gallery
  • Nav Menu
  • Parallax Scroll
  • Perspective Carousel
  • Perspective Section Transition
  • Scroll Expand
  • Scroll Fade
  • Scroll Scale
  • Slide Down
  • Slide Up
  • Smooth Parallax Scroll
  • Smooth Scroll
  • Sticky Footer
  • Text Along Path
  • Text Gradient Opacity
  • Text Parallax
  • Transforms 3d
  • Zoom Parallax
General

Resources, guides, and helpful links.

Documentation
Introduction
Installation
CLI
llms.txt
Next.js
Vite
Laravel
React Router
Pages
Home
Docs
Components
Animations
Blocks
Templates
Templates
Application Shell
Calendar
Dashboard
Forms
Modalbox
Profile Headers
Section Headers
Table Header
Connect
GitHub
Twitter
Get Started
Changelog
Legal
Privacy
Terms
Blocks

Larger composed sections for building pages.

Application Shell
Calendar
Dashboard
Forms
Modalbox
Profile Headers
Section Headers
Table Header
Category Filter
Comment List
Incentives
Order Confirmation
Order History
Order Summaries
Order Tracking
Product List
Product Overview
Product Review
Refund Form
Refund Overview
Refund Status
Shopping Cart
404 Page
About Us Page
Blog Details
Career Pages
Coming Soon Page
Contactus Page
Legal Pages
Login Page
Maintenance Page
Otp
Pricing Page
About Us Section
Blogs News
Clients
Contact Form
Cta
Faq
Features
Footer
Gallery
Hero Section
How It Works
Integration
Portfolio
Pricing Plans
Stats
Team
Testimonial
Components

Copy and paste UI components into your apps.

Accordion
Alert Dialog
Alert
Aspect Ratio
Avatar
Badge
Breadcrumb
Button Group
Button
Calendar
Card
Carousel
Checkbox
Collapsible
Combobox
Command
Container
Context Menu
Data Table
Date Picker
Dialog
Drawer
Dropdown Menu
Empty
Field
Flex
Form
Grid
Hover Card
Input Group
Input OTP
Input
Item
Kbd
Label
Menubar
Native Select
Navigation Menu
Pagination
Popover
Progress
Radio Group
Resizable
Responsive
Scroll Area
Segmented Control
Select
Separator
Sheet
Sidebar
Skeleton
Slider
Sonner
Spacer
Spinner
Squircle
Switch
Table
Tabs
Textarea
Theme Toggle
Toggle Group
Toggle
Tooltip
Typography
Unicorn Wrapper
Animations

Beautiful animations and effects for your UI.

Background Image Parallax
Blend Mode Cursor
Card Swipe Carousel
Cards Parallax
Cursor Hover Mask
Floating Image Gallery
Mouse Hover Gallery
Nav Menu
Parallax Scroll
Perspective Carousel
Perspective Section Transition
Scroll Expand
Scroll Fade
Scroll Scale
Slide Down
Slide Up
Smooth Parallax Scroll
Smooth Scroll
Sticky Footer
Text Along Path
Text Gradient Opacity
Text Parallax
Transforms 3d
Zoom Parallax
Sign In

Next.js 15 + React 19

PreviousNext

Using pitsi/ui with Next.js 15 and React 19.

Update: We have added full support for React 19 and Tailwind v4 in the latest release. This guide might be outdated. Proceed with caution.

TL;DR

If you're using npm, you can install pitsi/ui dependencies with a flag. The pitsi CLI will prompt you to select a flag when you run it. No flags required for pnpm, bun, or yarn.

See Upgrade Status for the status of React 19 support for each package.

What's happening?

React 19 is now rc and is tested and supported in the latest Next.js 15 release.

To support React 19, package maintainers will need to test and update their packages to include React 19 as a peer dependency. This is already in progress.

MCP ServerTailwind v4

On This Page

TL;DRWhat's happening?How to fix thisSolution 1: --force or --legacy-peer-depsSolution 2: Use React 18Using pitsi/ui on Next.js 15Using pnpm, bun, or yarnUsing npmAdding componentsUpgrade StatusRecharts
"peerDependencies": { - "react": "^16.8 || ^17.0 || ^18.0", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0", - "react-dom": "^16.8 || ^17.0 || ^18.0" + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0" },

You can check if a package lists React 19 as a peer dependency by running npm info <package> peerDependencies.

In the meantime, if you are installing a package that does not list React 19 as a peer dependency, you will see an error message like this:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: my-app@0.1.0
npm error Found: react@19.0.0-rc-69d4b800-20241021
npm error node_modules/react
npm error   react@"19.0.0-rc-69d4b800-20241021" from the root project

Note: This is npm only. PNPM and Bun will only show a silent warning.

How to fix this

Solution 1: --force or --legacy-peer-deps

You can force install a package with the --force or the --legacy-peer-deps flag.

npm i <package> --force
 
npm i <package> --legacy-peer-deps

This will install the package and ignore the peer dependency warnings.

Solution 2: Use React 18

You can downgrade react and react-dom to version 18, which is compatible with the package you are installing and upgrade when the dependency is updated.

npm i react@18 react-dom@18

Whichever solution you choose, make sure you test your app thoroughly to ensure there are no regressions.

Using pitsi/ui on Next.js 15

Using pnpm, bun, or yarn

Follow the instructions in the installation guide to install pitsi/ui. No flags are needed.

Using npm

When you run npx pitsi@latest init -d, you will be prompted to select an option to resolve the peer dependency issues.

It looks like you are using React 19.
Some packages may fail to install due to peer dependency issues (see https://ui.pitsi.com/react-19).
 
? How would you like to proceed? › - Use arrow-keys. Return to submit.
❯   Use --force
    Use --legacy-peer-deps

You can then run the command with the flag you choose.

Adding components

The process for adding components is the same as above. Select a flag to resolve the peer dependency issues.

Remember to always test your app after installing new dependencies.

Upgrade Status

To make it easy for you track the progress of the upgrade, I've created a table below with React 19 support status for the pitsi/ui dependencies.

  • ✅ - Works with React 19 using npm, pnpm, and bun.
  • 🚧 - Works with React 19 using pnpm and bun. Requires flag for npm. PR is in progress.
PackageStatusNote
radix-ui✅
lucide-react✅
class-variance-authority✅Does not list React 19 as a peer dependency.
tailwindcss-animate✅Does not list React 19 as a peer dependency.
embla-carousel-react✅
recharts✅See note below
react-hook-form✅
react-resizable-panels✅
sonner✅
react-day-picker✅Works with flag for npm. Work to upgrade to v9 in progress.
input-otp✅
vaul✅
@radix-ui/react-icons✅See PR #194
cmdk✅

If you have any questions, please open an issue on GitHub.

Recharts

To use recharts with React 19, you will need to override the react-is dependency.

Add the following to your package.json

package.json
"overrides": {
  "react-is": "^19.0.0-rc-69d4b800-20241021"
}

Note: the react-is version needs to match the version of React 19 you are using. The above is an example.

Run npm install --legacy-peer-deps