Examples

FormKrafter examples

This app demonstrates the FormKrafter stack consumed from React through the generated wrappers: the drag & drop builder, the form renderer, rules and validation.

Open the playgroundEvery example below can also be opened pre-loaded in the playground.

Browse the examples

Rendering

Nested form

The host form embeds two reusable forms through nested-form bricks: at render time each specRef is resolved by services.specSourceService and inlined — fields, validations and rules included.

Data

Context & auth

A token injected through the data prop and referenced as _authToken in the request headers — and provably absent from the submitted payload.

Advanced

Dynamic rules

Show, disable and compute fields from other answers — json-logic by default, sandboxed JavaScript when needed. Pick “Other”, tick the checkbox, set quantity above 10.

Theming

Every FormKrafter style flows through --fk-* CSS custom properties. The same form below, themed six different ways — each card shows the exact code that produces it.

Import Form.io

Paste a Form.io form definition, convert it with convertFormioForm from the core, and get a live FormKrafter spec — fields, layout, validations and simple conditionals included. Whatever cannot be mapped is listed as a warning.