Vite

Vite

Set up Intent in your Vite project with React and Tailwind CSS using a quick and efficient installation process.

Installation

Start a new project with the following command:

npm create vite@latest

Next, install Tailwind CSS along with the Tailwind CSS Vite plugin:

npm install tailwindcss @tailwindcss/vite

Vite.config.ts

Now, open your vite.config.ts file and add the following to the plugins array:

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'

// https://vite.dev/config/
export default defineConfig({
  plugins: [
    tailwindcss(),
    react()
  ],
})

Tsconfig.json

To ensure proper path resolution, update your tsconfig.json file with the following paths:

{
  "files": [],
  "references": [
    {
      "path": "./tsconfig.app.json"
    },
    {
      "path": "./tsconfig.node.json"
    }
  ],
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

Install Intent UI

After you setup all the necessary configurations, you can install Intent UI by running the following command:

npx @intentui/cli@latest init

Adding Components

Add Intent components to your project with the following command:

npx @intentui/cli@latest add text-field button menu

Other Framework

You might be interested in using Intent with other frameworks.

LaravelLaravel is a PHP framework for building web applications.
Next.jsNext.js is a React framework for building server-side rendered applications.
ViteVite is a tool for building frontend applications in a fraction of the time.
TanStack RouterTanStack Router is a framework for building server-side rendered applications.
Unlock the full power of
Design Intent UI
Build modern web apps faster with 350+ blocks and polished templates crafted for professionals.
Explore