1.14.0 • Published 4 years ago
@react-formless/react95 v1.14.0
@react-formless/react95
React95 render map for
@react-formless/core
.
Check custom renderers in action
install
first install core package and reac95 renderer (using yarn or npm)
yarn add @react-formless/core @react-formless/react95 --dev
then you may enjoy windows 95 experience within your forms ;)
import * as React from "react"
import { useFormHook, FormView, FormSchema } from "@react-formless/core"
import { react95Elements, react95Inputs } from "@react-formless/react95"
export type Car = { make: string }
const carMakes: Array<[string, string]> = [
["Tesla", "tesla-id"],
["Honda", "honda-id"],
["BMW", "bmw-id"]
]
const schema: FormSchema<Car> = { make: { type: "select", values: carMakes } }
export const AntDesignForm: React.FC = () => {
const { formViewProps } = useFormHook({ schema })
return <FormView {...formViewProps} inputsRenderMap={react95Inputs} elementsRenderMap={react95Elements}/>
}
Checkout full example
For more in depth documentation see @react-formless.
1.14.0
4 years ago
1.13.1
4 years ago
1.13.0
4 years ago
1.12.3
4 years ago
1.12.2
4 years ago
1.12.1
4 years ago
1.11.0
4 years ago
1.10.3
4 years ago
1.10.1
4 years ago
1.10.0
4 years ago
1.9.4
5 years ago
1.9.3
5 years ago
1.9.2
5 years ago
1.9.1
5 years ago
1.9.0
5 years ago
1.8.5
5 years ago
1.8.4
5 years ago
1.8.2
5 years ago
1.8.1
5 years ago
1.8.0
5 years ago
1.8.3
5 years ago
1.7.0
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.0
5 years ago
1.3.7
5 years ago
1.3.6
5 years ago
1.3.5
5 years ago
1.3.4
5 years ago
1.3.3
5 years ago
1.3.2
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago