The AdminPage component comes with a buildSettingComponent method that converts a config object into a Flarum-specific form field. We could generalize this to an abstract form element builder component, which could help reduce boilerplate and standardize styles.
Feature Request
The AdminPage component comes with a
buildSettingComponent
method that converts a config object into a Flarum-specific form field. We could generalize this to an abstract form element builder component, which could help reduce boilerplate and standardize styles.https://github.com/flarum/core/pull/2996#discussion_r691807155