InstallationVite
Install Default File UI in a Vite + React 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 vite --name my-vite-appcd my-vite-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.
Choose the React + TypeScript template. Skip if you already have a Vite app.
npm create vite@latestnpx --yes -p github:itsvigneshv/default-file-ui#main df-ui init --framework vitenpm install github:itsvigneshv/default-file-ui#main react react-dom lucide-reactAdd this to your global entry CSS (for example `src/index.css`).
@import "@default-file/ui/css/df-index.css";import { Button } from "@default-file/ui/components/df-button"
export function Example() {
return <Button>Click me</Button>
}Using a different stack? Choose another framework.