Install the package
Two steps. Install the package, then add the components you need.
Pick your framework
Same on every framework.
terminal
npm i topclassui@beta zodterminal
npm i topclassui@beta zodterminal
npm i topclassui@beta zodInstall
Use whichever you already have.
npm
npm i topclassui@beta zodpnpm
pnpm add topclassui@beta zodyarn
yarn add topclassui@beta zodbun
bun add topclassui@beta zodPeer dependencies
Three, and your project already has them.
Framework support
Tier means feature coverage, not quality.
React without Next.js
Everything works the same. Three things change.
No server render, so every component you use ships in your bundle. Import Icon from topclassui/icon-registry and register the icons you use, once. Paste the theme script into index.html by hand, as Provider shows.
vite.config.ts
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
})src/icons.ts
// once per app
import { registerIcons } from 'topclassui/icon-registry'
import { caretDown } from 'topclassui/icons/caret-down'
registerIcons({ 'caret-down': caretDown })