Get started by creating a new Next.js project with our UI components:
npx create-next-app@latest my-ui-app --typescript --tailwindOnce installed, you can start the development server:
npm run devThe project is organized into the following structure:
├── components/ │ ├── UI/ │ │ ├── Button.tsx │ │ ├── Input.tsx │ │ └── ... │ └── ... ├── app/ │ ├── button/ │ ├── input/ │ └── ... └── ...
Import and use components in your pages:
import { Button } from '@/components/UI/Button';
export default function MyPage() {
return (
<Button variant="primary" size="md">
Click me
</Button>
);
}