Skip to main content

Examples

Ready-to-run example apps demonstrating Fjorm with three major React component libraries, plus a comprehensive custom example.

Live Demos

ExampleLive
Basic Demofjorm playground
Ant Design v6fjorm playground
Mantine v9fjorm playground
Material UI v9fjorm playground
Custom Examplefjorm playground

Run Locally

git clone https://github.com/WEeziel172/fjorm
cd fjorm

# Start the playground (includes all examples)
cd demo && yarn install && yarn dev

What's Included

Basic Demo — Default fjorm form components with the pre-built FormBuilder.

UI Library Examples — Each demonstrates integrating fjorm with a major React component library:

  • A FormWrapper component that integrates with the library's form system
  • 10 field types (Text input, Text area, Number, Select, Checkbox, Radio group, Date picker, Switch, Header, Paragraph)
  • Declarative editor definitions for each field type
  • Build/Preview toggle with submitted data viewer

Custom Example — Demonstrates building a form builder and display from fjorm's primitives:

  • Custom field types built from scratch (Slider, TagInput, ColorPicker, Divider, Rating)
  • Manual composition of ToolBox + FormContainer + EditorToolBox
  • JSON export/import via serializeFormItems / deserializeFormItems
  • useFormItems, useFormBuilderDragDrop for state and DnD
  • Custom editor component implementing EditorProps
  • ErrorBoundary, FormComponentEditorContainer, useEditorChange in practice
  • localStorage autosave