Skip to main content
Version: 1.0.0

Interface: FireCMSProps<UserType>

Type parameters​

Name
UserType

Properties​

authDelegate​

• authDelegate: AuthDelegate<any>

Delegate for implementing your auth operations.

see useFirebaseAuthDelegate

Defined in​

core/FireCMS.tsx:114


authentication​

• Optional authentication: boolean | Authenticator<UserType>

Do the users need to log in to access the CMS. You can specify an Authenticator function to discriminate which users can access the CMS or not. If not specified, authentication is enabled but no user restrictions apply.

Defined in​

core/FireCMS.tsx:76


baseCollectionPath​

• Optional baseCollectionPath: string

Default path under the collection routes of the CMS will be created

Defined in​

core/FireCMS.tsx:130


basePath​

• Optional basePath: string

Default path under the navigation routes of the CMS will be created

Defined in​

core/FireCMS.tsx:125


dataSource​

• dataSource: DataSource

Connector to your database

Defined in​

core/FireCMS.tsx:103


dateTimeFormat​

• Optional dateTimeFormat: string

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

Defined in​

core/FireCMS.tsx:93


entityLinkBuilder​

• Optional entityLinkBuilder: EntityLinkBuilder<any>

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

Defined in​

core/FireCMS.tsx:120


locale​

• Optional locale: Locale

Locale of the CMS, currently only affecting dates

Defined in​

core/FireCMS.tsx:98


• navigation: Navigation | NavigationBuilder<UserType> | EntityCollection<any, string, any>[]

Use this prop to specify the views that will be generated in the CMS. You usually will want to create a Navigation object that includes collection views where you specify the path and the schema. Additionally you can add custom views to the root navigation. In you need to customize the navigation based on the logged user you can use a NavigationBuilder

Defined in​

core/FireCMS.tsx:67


schemaOverrideHandler​

• Optional schemaOverrideHandler: SchemaOverrideHandler

Used to override schemas based on the collection path and entityId. This resolver allows to override the schema for specific entities, or specific collections, app wide.

This overrides schemas all through the app.

You can also override schemas in place, when using useSideEntityController

Defined in​

core/FireCMS.tsx:87


storageSource​

• storageSource: StorageSource

Connector to your file upload/fetch implementation

Defined in​

core/FireCMS.tsx:108

Methods​

children​

â–¸ children(props): ReactNode

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

Parameters​

NameTypeDescription
propsObject
props.contextFireCMSContext<any>Context of the app
props.loadingbooleanIs 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
props.mode"dark" | "light"Main color scheme

Returns​

ReactNode

Defined in​

core/FireCMS.tsx:42

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!