A React component library built with Tailwind CSS v4 and base-ui components.
pnpm add @tan-ahmed/tan-ui-kityarn add @tan-ahmed/tan-ui-kitnpm install @tan-ahmed/tan-ui-kitNote: If you encounter the error Cannot read properties of null (reading 'matches') with npm, this is a known npm bug with Node.js 23.x. Please use one of the following workarounds:
- Use pnpm or yarn (recommended)
- Use
npm install --legacy-peer-deps - Clear npm cache:
npm cache clean --forceand retry - Update npm:
npm install -g npm@latest
Import the styles once in your main entry point file:
- React (Vite/CRA):
src/main.tsxorsrc/index.tsx - Next.js (App Router):
app/layout.tsxorapp/page.tsx - Next.js (Pages Router):
pages/_app.tsx - TanStack Start:
app.tsx - Other frameworks: Your main entry point file
// In your main entry point file (e.g., src/main.tsx, app.tsx, etc.)
import "@tan-ahmed/tan-ui-kit/styles";After importing the styles, you can use components anywhere in your app:
import { Button } from "@tan-ahmed/tan-ui-kit";
function MyComponent() {
return <Button variant="secondary">Click me</Button>;
}MIT