@aemforms/af-react-renderer
v0.22.111
Published
React Hooks to add business logic to React Components
Downloads
2,036
Keywords
Readme
@aemforms/af-react-renderer
React Based renderer for Adaptive Form Headless Definition.
Using Adaptive Form React Renderer
To use adaptive form react renderer, add the following dependency,
npm i --save @aemforms/af-core @aemforms/af-react-components @adobe/react-spectrum
Usage
import {mappings} from '@aemforms/af-react-components'
import { Provider as Spectrum3Provider, defaultTheme } from '@adobe/react-spectrum'
const json = {...}
<SpectrumProvider theme={defaultTheme}>
<AdaptiveForm mappings={mappings} formJson={json} />
</SpectrumProvider>
License
Copyright 2022 Adobe All Rights Reserved.
NOTICE: All information contained herein is, and remains the property of Adobe and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to Adobe and its suppliers and are protected by all applicable intellectual property laws, including trade secret and copyright laws. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Adobe.
Adobe permits you to use and modify this file solely in accordance with the terms of the Adobe license agreement accompanying it.