Skip to content

Instantly share code, notes, and snippets.

@vincentpaca
Last active January 31, 2020 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentpaca/b66af9a67d2e7195847b281fa7f08f66 to your computer and use it in GitHub Desktop.
Save vincentpaca/b66af9a67d2e7195847b281fa7f08f66 to your computer and use it in GitHub Desktop.
FE Take Home: JSON Form Builder
{
"components": [
{
"component_type": "text",
"name": "First Name",
"data": {}
},
{
"component_type": "text",
"name": "Last Name",
"data": {}
},
{
"component_type": "text",
"name": "Mobile Number",
"data": {}
},
{
"component_type": "dropdown",
"name": "Citizenship",
"data": [
{
"id": "sg",
"value": "Singaporean"
},
{
"id": "foreigner",
"value": "Foreigner"
}
]
}
]
}

Text Component

{
  "component_type": "text",
  "name": "Full Name",
  "data": {}
}

Dropdown Component

{
  "component_type": "dropdown",
  "name": "Citizenship",
  "data": [
    {
      "id": "sg",
      "value": "Singaporean"
    },
    {
      "id": "foreigner",
      "value": "Foreigner"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment