Used in 3 places
One form's fields with their types, and the pages it is placed on. Edit a field once and every copy follows.
The import and the props worth knowing about, in one place.
import { Form47 } from "@/components/beste/piece/form47";
<Form47
title="Contact form"
fields={[
{
"label": "Name",
"type": "Text"
},
{
"label": "Email",
"type": "Email"
},
{
"label": "Treatment",
"type": "Dropdown"
}
]}
placesLabel="Used in 3 places"
places={[
{
"label": "Contact",
"detail": "Section"
},
{
"label": "Home",
"detail": "Modal"
},
{
"label": "Treatments",
"detail": "Section"
}
]}
framed={true}
/>