SPY UI LogoSPY UI
DocsComponentsChartsBlocksTemplatesPricing
Login
Get All Access

Loading sidebar...

Next.js Installation

Install and configure spy-ui for your Next.js project.

1. Create project

Start by creating a new Next.js project using create-next-app. We recommend using TypeScript and Tailwind CSS.

Terminal
Loading code...

2. Run the CLI

Run the shadcn-ui init command to setup your project. Since spy-ui components are highly compatible with shadcn/ui, we recommend initializing it first.

Terminal
Loading code...

3. Add Dependencies

Install Framer Motion and Lucide React, which power most of the animations and icons in spy-ui.

Terminal
Loading code...

4. Configure Utils

Ensure you have the cn utility function set up in your project (usually at lib/utils.ts). It is used to conditionally join Tailwind CSS classes.

lib/utils.ts
Loading code...

5. Add Components

You're now ready to add components to your project. Use the CLI to directly add a component from spy-ui!

Terminal
Loading code...
Getting Started
Install Next.jsInstall Tailwind CSSAdd utilitiesCLI
Assets
Micro InteractionsThemes & Palettes StudioBackgrounds & Environments
All Components333AI Interfaces13Backgrounds1Badges & Indicators4Buttons61Cards18Carousels & Galleries30Inputs & Forms12Layouts & Grids2Loaders18Media & Assets1Mouse & Cursor Effects7Overlays & Drawers3Text & Typography153Themes & Palettes Studio1Toggles3UI Elements6
All Charts280Area Charts24Bar Charts26Bubble Charts14Candlestick Charts12Funnel Charts23Gauge Charts33Interactive Charts7Line Charts22Pie Charts18Polar Charts16Radar Charts30Radial Charts18Scatter Charts20Treemap Charts17
All Blocks86Carousels & Galleries2Footers29Grids & Layouts3Headers9Navbars & Menus32Sections11
All Templates6Agency2Portfolio4Saas1

Build faster with All Access

Lifetime access to all templates, components and blocks.

Get All Access