Laravel

Install and configure shadcn/ui for Laravel.

Create project

Start by creating a new Laravel project with Inertia and React using laravel new my-app:

loading...

Enter license

Enter your license key to unlock the full features of Pure UI:

Initialize design system

Use Design System to learn and initialize your own design system or start with the default theme:

loading...

Add components

You can now start adding components to your project.

loading...

The command above will add the Switch component to your project. You can then import it like this:

resources/js/pages/index.tsximport { Switch } from "@/components/ui/switch"

const MyPage = () => {
  return (
    <div>
      <Switch />
    </div>
  )
}

export default MyPage