Examples
Examples are small projects designed to demonstrate RADFish ecosystem. Templates are meant to be a clean starting point for a new RADFish project.
The source code for each example is in the open source repo for RADFish boilerplate. Each example can be cloned and run separately as you are working with each from the RADFish CLI. To learn how to run these scripts, refer to the running examples section.
📄️ Computed Form Fields
Automatically calculates a read-only field in forms
📄️ Conditional Form Fields
Dynamically show/hide fields based on other inputs
📄️ Field Validators
Enforce validation logic, like disallowing numbers
📄️ Form Structure
Build complex forms using Trussworks core components
📄️ Mock API
Mock API for frontend development with MSW and fetch
📄️ Multistep Form
Multi-step form saving progress and inputs locally
📄️ Network Status
Detect network connectivity and display offline alerts
📄️ On Device Storage
Use IndexedDB/Dexie.js for offline or local storage
📄️ Persisted Form
Save and persist form data locally with FormWrapper
📄️ React Query
Manage app state with React Query's simplified API
📄️ ServerSync
Sync client-server data with offline storage support
📄️ Simple Table
Display tabular data using the <Table> component