React-based form components, as used on WordPress.com
npm install @automattic/form-componentsForm Components
===============
This is a directory of shared form components.
- clipboard-button
- counted-textarea
- form-button
- form-buttons-bar
- form-checkbox
- form-country-select
- form-currency-input
- form-fieldset
- form-input-validation
- form-label
- form-legend
- form-password-input
- form-phone-input
- form-phone-media-input
- form-radio
- form-range
- form-section-heading
- form-select
- form-setting-explanation
- form-tel-input
- form-text-input
- form-text-input-with-action
- form-text-input-with-affixes
- form-textarea
- form-toggle
- multi-checkbox
- range
- sortable-list
The component jsx files are wrappers that ensure our classes are added to each form field. Each form field component also contains a style.scss file in its directory for styling. These stylesheets are included in /assets/stylesheets/_components.scss.
FormSectionHeading component allows you to add a section header to your settings form.FormInputValidation component is used to display a validation notice to the user. You can use it like this:``jsx`
See README.md for MultiCheckbox
allows you to pass structured data to render a select element with