A free, visual form builder for creating Tailwind CSS forms. Build your forms with drag-and-drop, customize styling, and export clean code for HTML, React, or Vue.
No login required. No data stored. Just build and export.
- Visual Form Builder - Drag and drop fields to create your form layout
- Multiple Field Types - Text, email, phone, date, select, checkbox, radio, file upload, and more
- Compound Fields - Pre-built name and address fields with proper structure
- Theme Options - Choose from Default, Simple, Underline, or Solid input styles
- Field Spacing Control - Tight, Default, or Wide spacing presets
- Dark Mode Support - Preview your forms in light or dark mode
- Multi-Format Export - Export to HTML, React (JSX), or Vue (Composition API)
- Copy to Clipboard - One-click copy of generated code
- Responsive Preview - See how your form looks in real-time
- Text Input
- Paragraph (Textarea)
- Number
- Dropdown (Select)
- Checkbox
- Multi Choice (Radio)
- Hidden
- Phone
- Date
- URL
- File Upload
- Name (First/Last)
- Address (Street, City, State, Zip)
- Node.js 18+
- npm, yarn, pnpm, or bun
# Clone the repository
git clone https://github.com/levinunnink/tailwind-form-builder.git
cd tailwind-form-builder
# Install dependencies
npm install
# Start the development server
npm run devOpen http://localhost:3000 to start building forms.
npm run build
npm start- Next.js 16 - React framework
- React 19 - UI library
- Tailwind CSS 4 - Utility-first CSS
- @tailwindcss/forms - Form styling plugin
- @dnd-kit - Drag and drop
- Zustand - State management
- Prism React Renderer - Syntax highlighting
- Add Fields - Click on field types in the right sidebar to add them to your form
- Configure Fields - Click on any field to open the editor and customize label, placeholder, validation, etc.
- Reorder Fields - Drag fields to rearrange their order
- Adjust Settings - Click "Form Settings" to configure form action, method, theme, and spacing
- Export Code - Click "Export Code" to get your form in HTML, React, or Vue format
Clean, semantic HTML with Tailwind classes. Ready to drop into any project.
Functional component with useState hooks and form handling. TypeScript-friendly.
Composition API with ref() for reactive form data. Vue 3 compatible.
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
This project is sponsored by:
- Sheet Monkey - Save form submissions to Google Sheets
MIT License - see LICENSE for details.
Built with Next.js and Tailwind CSS