@react-formless/react95
TypeScript icon, indicating that this package has built-in type declarations

1.14.0 • Public • Published

@react-formless/react95

tests status

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.14.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.14.00
1.13.10
1.13.00
1.12.30
1.12.20
1.12.10
1.11.00
1.10.30
1.10.10
1.10.00
1.9.40
1.9.30
1.9.20
1.9.10
1.9.00
1.8.50
1.8.40
1.8.30
1.8.20
1.8.10
1.8.00
1.7.00
1.6.00
1.5.00
1.4.00
1.3.70
1.3.60
1.3.50
1.3.40
1.3.30
1.3.20
1.3.10
1.3.00
1.2.00

Package Sidebar

Install

npm i @react-formless/react95

Weekly Downloads

0

Version

1.14.0

License

MIT

Unpacked Size

9.88 kB

Total Files

11

Last publish

Collaborators

  • gmoskal