mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 12:33:36 +09:00
https://github.com/webstudio-is/webstudio-builder/issues/84#issuecomment-1522834976 ## Description 1. Added new components: - textarea - radio-button and radio-button-field - checkbox and checkbox-field - success-message - error-message 2. Added `states` like `:disabled`, `:valid`, etc. to `input` 3. Added `custom-components/form` that renders success-message and error-message conditionally 4. Added `success` and `error` style states to `custom-components/form` 5. Style panel now shows "Select an instance on the canvas" if the selected component is not rendered on canvas (e.g. error-message may not be rendered) Not in this PR: - The mailer package - Backend handler for forms (will be in a PR in SAAS) - Logic in Form that actually submits to backend and shows success/error messages ## Steps for reproduction 1. Add a "Form" to canvas 2. Add "Checkbox Field", "Radio Button Field", "Text Area" to the form 3. Try changing `initialState` property of the form