https://github.com/scrive/elm-json-forms
https://github.com/scrive/elm-json-forms
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/scrive/elm-json-forms
- Owner: scrive
- License: other
- Created: 2024-07-22T13:05:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T15:33:53.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T06:21:37.816Z (about 1 year ago)
- Language: Elm
- Size: 310 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# JSON Schema Form Generator
[](https://github.com/scrive/elm-json-forms/actions/workflows/elm.yml)
[](https://github.com/scrive/elm-json-forms/actions/workflows/elm-to-gh-pages.yml)
Elm Package: https://package.elm-lang.org/packages/scrive/elm-json-forms/latest
Live example: https://scrive.github.io/elm-json-forms/
Generate validating forms from JSON schemas.
elm package install scrive/elm-json-forms
## Features
- Can handle most of the UI Schema specification
- Can handle almost all JSON Schema features (draft-04 and draft-06).
- Generates all common types of input fields (`text`, `select`, etc.) with optional labels and descriptions.
- Error messages can easily be customized as needed.
- Supports custom string formats using validation functions (similar to Json decoders).
- Comes with default Tailwind CSS theme in the `Theme` object that can be customised.
## Unimplemented Features
- Linked schemas using `$ref`.
- Arrays
- Control Example
- Descriptions as tooltips for booleans
- Categorization Example
- Implement prev/next buttons
- Implement stepper variant