InstallationReact Router
Install Default File UI in a React Router framework project.
Scaffold a new project with Default File UI already configured.
Creates the framework app and wires Default File UI (package, CSS, and framework config).
npx --yes -p github:itsvigneshv/default-file-ui#main df-ui init -t react-router --name my-rr-appcd my-rr-app
npm run devimport { Button } from "@default-file/ui/components/df-button"
export function Example() {
return <Button>Click me</Button>
}Prefer the CLI init in your app folder, or follow the manual steps.
Skip if you already have a React Router app.
npm create react-router@latestnpx --yes -p github:itsvigneshv/default-file-ui#main df-ui init --framework react-routernpm install github:itsvigneshv/default-file-ui#main react react-dom lucide-reactImport once in your root stylesheet (commonly `app/app.css`).
@import "@default-file/ui/css/df-index.css";import { Button } from "@default-file/ui/components/df-button"
export default function Home() {
return <Button>Click me</Button>
}Using a different stack? Choose another framework.