Bring your own Feathery field
Customize your forms with your own components written in React.
Last updated
Customize your forms with your own components written in React.
Last updated
Custom Fields are in beta. The information on this page is subject to change as development continues.
From the elements panel, drag the "Custom Field" element onto your form
In the code editor that appears, paste your React component code
Your custom component must follow these requirements to work properly:
Must be exported as the default export
Must accept and handle value
and onChange
props
Must be a valid React component
Your component will receive these props:
value
: The current value of the field. Can be a valid json value or object
onChange
: Function to update the field's value
Accepts one parameter: the new value
Updates the form state automatically
You can import and use npm packages in your custom component. Here's a more complex example using the react library react-colorful
Please note the following limitations:
Style properties inside the designer are not currently supported
Custom properties cannot be configured through the form builder interface
Component must be self-contained in a single file
Component cannot use Typescript
These limitations will be updated in the near future.