Skip to content

FireCMSProps

@firecms/core


@firecms/core / FireCMSProps

FireCMSProps<USER> = object

Defined in: types/firecms.tsx:52

USER extends User

optional apiKey: string

Defined in: types/firecms.tsx:75

If you have a custom API key, you can use it here.


authController: AuthController<USER>

Defined in: types/firecms.tsx:131

Delegate for implementing your auth operations.


children: (props) => React.ReactNode

Defined in: types/firecms.tsx:59

Use this function to return the components you want to render under FireCMS

FireCMSContext

Context of the app

boolean

Is one of the main processes, auth and navigation resolving, currently loading. If you are building your custom implementation, you probably want to show a loading indicator if this flag is true

React.ReactNode


optional components: object

Defined in: types/firecms.tsx:172

optional missingReference: React.ComponentType<{ path: string; }>

Component to render when a reference is missing


dataSourceDelegate: DataSourceDelegate

Defined in: types/firecms.tsx:121

Connector to your database


optional dateTimeFormat: string

Defined in: types/firecms.tsx:111

Format of the dates in the CMS. Defaults to ‘MMMM dd, yyyy, HH:mm:ss’


optional entityActions: EntityAction[]

Defined in: types/firecms.tsx:105

List of actions that can be performed on entities. These actions are displayed in the entity view and in the collection view. You can later reuse these actions in the entityActions prop of a collection, by specifying the key of the action.


optional entityLinkBuilder: EntityLinkBuilder

Defined in: types/firecms.tsx:156

Optional link builder you can add to generate a button in your entity forms. The function must return a URL that gets opened when the button is clicked


optional entityViews: EntityCustomView[]

Defined in: types/firecms.tsx:97

List of additional custom views for entities. You can use the key to reference the custom view in the entityViews prop of a collection.

You can also define an entity view from the UI.


optional locale: Locale

Defined in: types/firecms.tsx:116

Locale of the CMS, currently only affecting dates


navigationController: NavigationController

Defined in: types/firecms.tsx:88

This controller is in charge of the navigation of the CMS. It is in charge of resolving the collection and entity paths.


optional onAnalyticsEvent: (event, data?) => void

Defined in: types/firecms.tsx:150

Callback used to get analytics events from the CMS

CMSAnalyticsEvent

object

void


optional plugins: FireCMSPlugin<any, any, any>[]

Defined in: types/firecms.tsx:145

Use plugins to modify the behaviour of the CMS. DEPRECATED: use the plugins prop in the useBuildNavigationController instead. This prop will work as a fallback for the plugins prop in the useBuildNavigationController.


optional propertyConfigs: Record<string, PropertyConfig>

Defined in: types/firecms.tsx:82

Record of custom form fields to be used in the CMS. You can use the key to reference the custom field in the propertyConfig prop of a property in a collection.


storageSource: StorageSource

Defined in: types/firecms.tsx:126

Connector to your file upload/fetch implementation


optional userConfigPersistence: UserConfigurationPersistence

Defined in: types/firecms.tsx:137

Use this controller to access the configuration that is stored locally, and not defined in code


optional userManagement: InternalUserManagement

Defined in: types/firecms.tsx:170

You can use this props to provide your own user management implementation. Note that this will not affect the UI, but it will be used to show user information in various places of the CMS, for example, to show who created or modified an entity, or to assign ownership of an entity.

You can also use this data to be retrieved in your custom properties, for example, to show a list of users in a dropdown.

If you are using the FireCMS user management plugin, this prop will be implemented automatically.