@component-controls/editors
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

Table of contents

Overview

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.

List of components

addPropertyEditor

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*
PropertyEditor<>
propTypes: WeakValidationMap<> | undefined
contextTypes: ValidationMap<> | undefined
defaultProps: Partial<P> | undefined
displayName: string | undefined
: a Property Editor class.

Readme

Keywords

none

Package Sidebar

Install

npm i @component-controls/editors

Weekly Downloads

207

Version

4.0.3

License

MIT

Unpacked Size

119 kB

Total Files

57

Last publish

Collaborators

  • atanasster