You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
('form','With the header type, you can group your input fields based on a theme. For example, you can categorize fields according to a person''s identity and their contact information.',
352
+
json('[{"component":"form","title":"Information about the person"}, '||
353
+
'{"type": "header", "label": "Identity"},'||
354
+
'{"name": "Name"},'||
355
+
'{"name": "Surname"},'||
356
+
'{"type": "header","label": "Contact"},'||
357
+
'{"name": "phone", "label": "Phone number"},'||
358
+
'{"name": "Email"},'||
359
+
']')),
360
+
361
+
('form','A toggle switch in an HTML form is a user interface element that allows users to switch between two states, typically "on" and "off." It visually resembles a physical switch and is often used for settings or options that can be enabled or disabled.',
362
+
json('[{"component":"form"}, '||
363
+
'{"type": "switch", "label": "Dark theme", "description": "Enable dark theme"},'||
364
+
'{"type": "switch", "label": "A required toggle switch", "required": true},'||
365
+
'{"type": "switch", "label": "A disabled toggle switch", "disabled": true},'||
366
+
']')),
367
+
350
368
('form', 'This example illustrates the use of the `select` type.
351
369
In this select input, the various options are hardcoded, but they could also be loaded from a database table,
352
370
[using a function to convert the rows into a json array](/blog.sql?post=JSON%20in%20SQL%3A%20A%20Comprehensive%20Guide) like
0 commit comments