HomeDocsComponentsBlocksChartsThemes
Introduction
  • Introduction
  • Installation
  • Themes
  • Artwork
  • llms.txt
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Meter
  • Multi Select
  • Native Select
  • Number Field
  • Pagination
  • Password Strength
  • Phone Input
  • Popover
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Phone Input
  • Popover
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert
  • Alert Dialog
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar
  • Avatar Upload
  • Badge
  • Banner
  • Brand SVG
  • Breadcrumb
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Cart Button
  • Cart Line Item
  • Cart Summary
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Fill Blank
  • File Icon
  • File Upload
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Person Avatar
  • Phone Input
  • Popover
  • Price
  • Product Card
  • Progress
  • Progress Circle
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat
  • Stat Tabs
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree
  • Typography
  • Video Player
  • Window Mockup
  • Accordion
  • Alert Dialog
  • Alert
  • Amount
  • Aspect Ratio
  • Audio Player
  • Avatar Upload
  • Avatar
  • Badge
  • Banner
  • Bot Avatar
  • Brand SVG
  • Breadcrumb
  • Button Group
  • Button
  • Calendar
  • Card
  • Carousel
  • Cart Button
  • Cart Line Item
  • Cart Summary
  • Chart
  • Checkbox
  • Code Block
  • Collapsible
  • Color Picker Primitive
  • Combobox
  • Command
  • Context Menu
  • Copy Button
  • Countdown
  • Data Grid
  • Data Table
  • Date Picker
  • Date Range Picker
  • Description List
  • Device Mockup
  • Dialog
  • Direction
  • Dot Loader
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • File Icon
  • File Upload
  • Fill Blank
  • Form Guide
  • Hover Card
  • Icon Tile
  • Image Export
  • Input Group
  • Input OTP
  • Input
  • Item
  • Kanban
  • Kbd
  • Label
  • League Table
  • Marquee
  • Match Score
  • Menubar
  • Meter
  • Multi Select
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Password Strength
  • Person Avatar
  • Phone Input
  • Popover
  • Price
  • Product Card
  • Progress Circle
  • Progress
  • Radio Group
  • Rating
  • Resizable
  • Responsive Dialog
  • Rich Text Editor
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Signature
  • Skeleton
  • Slider
  • Sonner
  • Sortable
  • Spinner
  • Stat Tabs
  • Stat
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Terminal
  • Textarea
  • Time Field
  • Timeline
  • Toggle Group
  • Toggle
  • Tooltip
  • Tree
  • Video Player
  • Window Mockup
AI
  • Message Scroller
  • Message
  • Bubble
  • Marker
  • Attachment
  • Questionnaire
  • Composer
  • Reasoning
  • Tool Call
  • Approval Card
  • Citations
  • Message Toolbar
Blocks
  • Airtable
  • Airtable Kanban
  • CRM
  • ClickUp List
  • ClickUp Kanban
  • Repeatable Group
  • Command Palette
  • App Shell
  • Record Files
  • Settings Shell
  • Help Panel
  • Note Editor
  • Email Drafts
  • Task List
  • Notifications Panel
  • Dual Pane Sidebar
  • Team Members Panel
  • Mix Pack Builder
  • Record Picker and Date Quick-pick
  • Record List
  • Record Page
  • Sign In and Sign Up
  • Availability Scheduler
  • AI Chat
  • AI Assistant
  • Voice Message
  • Action Bar
  • Notion
  • Banking
  • Lineup Builder
  • Sports Score
  • Standings
  • Strava
  • Sheets
  • Notices
  • Settings
  • Billing
Templates
  • Sign In Page
  • Upload Page
  • Showcase Onboarding
  • Agreement Sign
  • Email
  • Email Composer
  • Share Dialog
  • Integrations
  • Transactions
  • Analytics
Utilities
  • motion
  • sounds
  • scroll-fade
  • shimmer
Another UI. Built on shadcn/ui with Phosphor icons.

Installation

PreviousNext

Start a new Next.js app with one command, or add Another UI to a React app you already have.

New project#

Pick a name, then run this to create a Next.js app that is already set up with Another UI:

The commands below update as you type.

pnpm dlx shadcn@latest create -t next -n my-app https://anotherui.dev/new

Then start it:

cd my-app
pnpm dev

You get:

  • Next.js with Tailwind CSS v4 and TypeScript.
  • The Radix base (radix-nova), Phosphor icons and the Another UI colors. The new-project starter has not moved to the UI SDK yet; the rest of Another UI has (see below).
  • Instrument Sans and Geist Mono, like this site.
  • Dark mode, with a theme menu. Press d to switch.
  • Tooltips and toasts wired up in components/theme-provider.tsx.
  • Button, Card, Badge, Input, Label, Field, Dialog, Dropdown Menu, Sonner, Tabs, Tooltip, Separator, Skeleton, Stat, Segmented Control and Copy Button.
  • A welcome page in app/page.tsx. Change it or replace it.

https://anotherui.dev/new points to anotherui.dev/r/starter.json, so you can also use that URL. Sounds stay off until you turn them on (see Sounds below).

Existing project#

Another UI works in any React app that uses Tailwind CSS v4. These steps cover Next.js and Vite. Other React setups follow the same steps once Tailwind is in place.

Components are added with the CLI command shown on each page, pointed at the Another UI registry.

Create a project#

Skip this step if you already have a React app with Tailwind CSS v4.

Next.js

pnpm create next-app@latest my-app --typescript --tailwind --eslint --app

Vite

pnpm create vite@latest my-app -- --template react-ts
cd my-app
npm install tailwindcss @tailwindcss/vite

For Vite, add the Tailwind plugin and an @ alias to vite.config.ts:

vite.config.ts
import path from "path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
 
export default defineConfig({
  plugins: [react(), tailwindcss()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
})

Then add the same alias to tsconfig.json and tsconfig.app.json:

tsconfig.json
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

Replace the contents of src/index.css with:

src/index.css
@import "tailwindcss";

Set up components.json#

Run init once. It writes a components.json file that tells the CLI where your components, hooks and global CSS live, and adds the cn helper. The UI SDK is the base Another UI recommends and the one the docs and the create flow start on. With a shadcn CLI that lists it as a base, run:

pnpm dlx shadcn@latest init --base ui-sdk

The UI SDK base is built on Vercel's UI SDK and needs React 19 or newer. Its style is ui-sdk-nova, so components.json should have "style": "ui-sdk-nova". The commands on each component page install the UI SDK versions by URL, so they work whichever way you ran init; if your CLI does not know the ui-sdk base yet, run init with one of the bases below and set that style by hand.

Another UI also publishes the same components on three other bases. Pick one with --base, or choose it in the base switcher on any component page and in the create flow:

BaseCommandcomponents.json style
UI SDK (default)npx shadcn@latest init --base ui-sdkui-sdk-nova
Radix UInpx shadcn@latest init --base radixradix-nova
Base UInpx shadcn@latest init --base basebase-nova
React Arianpx shadcn@latest init --base ariaaria-nova

Match the base to your components. If you mix them, the CLI rewrites some props (for example asChild against render) and the components won't type check. Migrating from Radix lists what changes.

Add a component#

Add components by URL. The first one also brings in another-ui-styles, the shared Another UI stylesheet that every component depends on.

pnpm dlx shadcn@latest add https://anotherui.dev/r/button.json

Every component page shows its own command. The full list is in the registry index at anotherui.dev/r/registry.json.

Shared stylesheet#

The first component you add also installs styles/another-ui.css (motion, button styles and surfaces) and adds an import for it to your global CSS. If your CSS file is not app/globals.css, add the import yourself, after Tailwind:

src/index.css
@import "tailwindcss";
@import "../styles/another-ui.css";

Sounds (optional)#

Some components can play short interaction sounds through Cuelume. They are off by default. To turn them on, call this once on the client, for example from a settings toggle:

import { setSoundsEnabled } from "@/lib/sounds"
 
setSoundsEnabled(true)

The choice is saved in the browser, and setSoundsEnabled(false) turns them off again.

Stop zoom on input focus (phones)#

Ledger fields use 13px text, and iPhone Safari zooms the page when you focus a field under 16px. Set maximumScale in your root app/layout.tsx. On iPhone this only stops the focus zoom; pinch to zoom still works.

import type { Viewport } from "next"
 
export const viewport: Viewport = {
  width: "device-width",
  initialScale: 1,
  maximumScale: 1,
}

Use it#

import { Button } from "@/components/ui/button"
 
export default function Page() {
  return <Button>Click me</Button>
}

Next steps#

  • Browse the components and blocks.
  • Pick colors, radius and fonts in the theme editor, then copy the CSS into your global file. See Theming.
  • Add a theme toggle with Dark mode.
IntroductionTheming

On This Page

New projectExisting projectCreate a projectSet up components.jsonAdd a componentShared stylesheetSounds (optional)Stop zoom on input focus (phones)Use itNext steps