Custom components library
@adminjs/custom-components
$ yarn add @adminjs/custom-componentsimport { ComponentLoader } from 'adminjs'
import bundle from '@adminjs/custom-components'
const componentLoader = new ComponentLoader()
const Components = {
// other custom components
// 'CustomComponent' is the component name from library
CustomComponent: bundle(componentLoader, 'CustomComponent'),
}
export { componentLoader, Components }Last updated