This project is a React application built with Vite, demonstrating a Dynamic Form Builder and a Data Grid with advanced features.
- Dynamic Field Definition: Users can add, edit, and remove form fields dynamically.
- Supported Field Types:
- Text Input
- Number Input
- Date Picker
- Dropdown Select
- Live Preview: Real-time preview of the form as it is being built.
- Customization:
- Background Color & Patterns (Solid, Dots, Grid, Lines).
- Text Color Customization.
- Backend Integration (Bonus): Includes a simulated backend fetch (
fetchFormSchemainservices/api.ts) to load form schemas dynamically, mimicking a Firebase integration.
- Data Source: Fetches 500 records from the JSON Placeholder API (
https://jsonplaceholder.typicode.com/comments). - Filtering: Real-time search functionality across Name, Email, and Body fields.
- Sorting: Clickable column headers to sort data in Ascending/Descending order.
- Pagination:
- Client-side pagination.
- Adjustable page size (10, 25, 50, 100 records per page).
- Next/Previous navigation.
- Framework: React + Vite
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Custom UI components (based on shadcn/ui design patterns)
- Icons: Lucide React
-
Install dependencies:
npm install
-
Run the development server:
npm run dev