Spectra UI
ShowcaseGetting Started

Installation

Install and configure for React.js

Prerequisites

These are the main dependencies you will need to get started.
npm install tailwindcss@latest clsx tailwind-merge framer-motion
Copy and paste the following code into your project.
// lib/utils.ts
import clsx, { ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
 
export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}

On this page