Check the doc for every form element:
Implement all necessary form input with form API.
Also check issue with checkbox in Layout Builder : 🐛 [4.0.0-alpha6] checkboxes not well formed Active
Active
4.0
Code