InstallationLaravel
Install Default File UI in Laravel with Inertia and React.
Scaffold a new project with Default File UI already configured.
The Default File UI CLI does not scaffold PHP apps. Create Laravel first, then init.
laravel new example-app
cd example-app
php artisan inertia:install reactnpx --yes -p github:itsvigneshv/default-file-ui#main df-ui init --framework laravelimport { Button } from "@default-file/ui/components/df-button"
export default function Welcome() {
return <Button>Click me</Button>
}Prefer the CLI init in your app folder, or follow the manual steps.
Default File UI is React. Use Inertia’s React starter (or an equivalent React front end). Skip if you already have one.
laravel new example-app
cd example-app
php artisan inertia:install reactnpx --yes -p github:itsvigneshv/default-file-ui#main df-ui init --framework laravelnpm install github:itsvigneshv/default-file-ui#main react react-dom lucide-reactImport once in your Vite entry CSS (commonly `resources/css/app.css`).
@import "@default-file/ui/css/df-index.css";import { Button } from "@default-file/ui/components/df-button"
export default function Welcome() {
return <Button>Click me</Button>
}Using a different stack? Choose another framework.