Skip to content

Commit 153ecd8

Browse files
added checked toggle switch example
1 parent 8ff39fb commit 153ecd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ When loading the page, the value for `:username` will be `NULL` if no value has
361361
('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.',
362362
json('[{"component":"form"}, '||
363363
'{"type": "switch", "label": "Dark theme", "description": "Enable dark theme"},' ||
364-
'{"type": "switch", "label": "A required toggle switch", "required": true},' ||
364+
'{"type": "switch", "label": "A required toggle switch", "required": true,"checked": true},' ||
365365
'{"type": "switch", "label": "A disabled toggle switch", "disabled": true},' ||
366366
']')),
367367

0 commit comments

Comments
 (0)