Skip to content

PropertyConfig

@firecms/core


@firecms/core / PropertyConfig

PropertyConfig<T> = object

Defined in: types/property_config.tsx:9

This is the configuration object for a property. These configs are generated by default for the properties defined in your collections’ configuration, but you can define your own to be used.

T extends CMSType = any

optional color: string

Defined in: types/property_config.tsx:40

CSS color, used only in some plugins like the field selector. e.g. “#2d7ff9”


optional description: string

Defined in: types/property_config.tsx:45

Description of this field type.


optional Icon: React.ComponentType

Defined in: types/property_config.tsx:34

Optional icon to be used in the field selector. Use a 24x24 component, in order not to break the layout. Any FireCMS icon can be used.


key: PropertyConfigId | string

Defined in: types/property_config.tsx:14

Key used to identify this property config.


name: string

Defined in: types/property_config.tsx:20

Name of this field type. This is not the name of the property.


property: PropertyOrBuilder<T>

Defined in: types/property_config.tsx:27

Default config for the property. This property or builder will be used as the base values for the resulting property. You can also use a builder function to generate the base property.