Docs / getting started/installation
Getting Started

installation

Everything you need to know about installation in getting started. Copy, paste, and customize.

Prerequisites

Before using SnapJSX components, make sure you have:

  • React 18+ installed in your project
  • Tailwind CSS v3.0+ configured
  • A bundler like Vite, Next.js, or Create React App

Step 1: Install Tailwind CSS

If you haven't already, install and configure Tailwind CSS in your project:

bash
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

Step 2: Configure Tailwind

Add the following to your tailwind.config.js:

javascript
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}