Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 794 Bytes

custom-components-library.md

File metadata and controls

30 lines (21 loc) · 794 Bytes
description
@adminjs/custom-components

Custom components library

If standard library components are not enough there is available library with custom ones. It is growing continuously to fulfill various users needs.

$ yarn add @adminjs/custom-components

Usage is similar to using own components instead writing own component just import one from library.

./components.ts

import { 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 }