Component controls editors for component control values.
npm install @component-controls/editors- Overview
- List of components
- addPropertyEditor
Some of the guiding design goals for this library:
- Extensible using addPropertyEditor, so you can replace or add new editors.
- All editors offer a consistent interface through the getPropertyEditor factory.
react function
_defined in @component-controls/editors/core/specification/src/prop-factory.ts_
parameters
| Name | Type | Description |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| type* | ControlTypes.TEXT, ControlTypes.NUMBER, ControlTypes.BOOLEAN, ControlTypes.OPTIONS, ControlTypes.DATE, ControlTypes.COLOR, ControlTypes.BUTTON, ControlTypes.OBJECT, ControlTypes.ARRAY, ControlTypes.FILES | Control field types examples are provided for the different types: |
| editor* | | : a Property Editor class. |PropertyEditor<>propTypes: WeakValidationMap<> \| undefinedcontextTypes: ValidationMap<> \| undefineddefaultProps: Partial<P> \| undefineddisplayName: string \| undefined