I pulled some HTML elements off of tailwindui.com
In this snippet, my group of questions are placed nicely within the white box (photo)
<!-- TECH-->
<div class="space-y-6">
<div class="bg-white shadow px-4 py-5 sm:rounded-lg sm:p-6">
<div class="md:grid md:grid-cols-3 md:gap-6">
<div class="md:col-span-1">
<h3 class="text-lg font-bold leading-6 text-gray-900">Tech Info</h3>
<p class="mt-1 text-sm text-gray-500">All the nerdy stuff</p>
</div>
<div class="mt-5 md:mt-0 md:col-span-2">
<form action="#" method="POST">
<fieldset>
....a lot of other stuff here
</div>
</div>
</fieldset>
</form>
</div>
</div>
I’m not familiar with HTML at all. I see that the white rounded corner box is declared at the top of the html code.
In JSON, it seems, I put a "styleClasses": "some styling here"
outside of a fields block like so:
"fields": [{
"something": "somethingHere"
}],
"styleClasses": "add my styling classes for the above fields here"
So … I’m thinking … if I just put what’s in the html <div class="bg-white shadow px-4 py-5 sm:rounded-lg sm:p-6">
into the styleClasses like so:
"styleClasses": "bg-white shadow px-4 py-5 sm:rounded-lg sm:p-6"
it would look the same.
But it looks like…
and it makes everything below it wonky.
Everything in my form has been HTML from tailwindui.com up until now because I need to add a timePicker and can only find the FM Examples that are in JSON.
What should I do? Ditch all the HTML stuff and just go with JSON?