Writing your own Components
Adding custom components
import { ComponentLoader } from 'adminjs'
const componentLoader = new ComponentLoader()
const Components = {
MyInput: componentLoader.add('MyInput', './my-input'),
// other custom components
}
export { componentLoader, Components }import React from 'react'
// just some regular React component
const MyInputComponent = () => <input />
export default MyInputComponentCustom Component Structure
Dependencies
Props passed to components
Overriding internal AdminJS components
Other customizations
Theming
Using style props
Adding custom css to components
Reusing UI Components of AdminJS
Creating Custom Pages
Using other AdminJS frontend classes and objects
Last updated