# USAGE EXAMPLE #
local formData = QT.CreateBox("Test Form", {
{ label = 'First Name', type = 'input', required = true, icon = "fa-solid fa-file-signature" },
{ label = 'Last Name', type = 'input', required = true, icon = "fa-solid fa-file-signature" },
{ label = 'Email', type = 'input', required = true, icon = "fa-solid fa-square-envelope" },
{ label = 'Date of Birth', value = '', type = 'date', required = true, min = "2023-01-01", max = "2024-12-31" },
{ label = 'Age', type = 'number', min = 1, max = 99, required = true, icon = "fa-solid fa-image-portrait" },
{ label = 'Select Option', options = { 'Option 1', 'Option 2', 'Option 3' }, type = 'select' },
{ label = 'Select job', options = { 'police', 'ambulance', 'mechanic' }, type = 'multi-select' },
{ label = 'Test Checkbox', value = 'checkbox', type = 'checkbox', icon = "fa-solid fa-check-double", checked = false },
})
if formData then
print(json.encode(formData["input-1"]))
else
print("Form was canceled or closed.")
end