There is somethink new with v0.05! Check out the change log! 🚀


Installation

How to install dependencies and use the library

Requirements

Use Node.js 18 or later and install dependencies with pnpm. A .nvmrc file is included to match the expected Node version, and the install script checks that you have pnpm 9.15.3 or newer. If Node 18 isn’t installed, run nvm install and then nvm use.

Installation works just like shadcn/ui. Here's how to get started:

Create project

Run the following command to create a new Next.js project or set up an existing one:

Add fastui components

Copy the template components from the fastui library into your project, or create your own inside the components/ui folder.

You can now import and use any template component:

import { Button } from '@/components/ui/button';
 
export default function Home() {
  return (
    <Button>Click me</Button>
      <h1>Window size</h1>
      <p>Width: {width}</p>
      <p>Height: {height}</p>
    </div>
  );
}