admin.components object.
Config Options
admin.components is the RootAdminComponents type. The other root admin options are listed in Admin panel.
The
chat slots are:
See Chat persistence for the props each chat slot receives. See Custom Providers, Custom Views, and Dashboard for those larger extension points.
Components
actions
Actions add controls to the Admin Panel header.beforeLogin and afterLogin
UsebeforeLogin and afterLogin to place content around the login fields:
Sidebar slots
Use the sidebar slots without replacing its built-in behavior:Account menu
Add items to the account menu or replace its Log out item:Nav
Nav replaces the complete sidebar. Use navItems or navSections when you only need to change its contents.
navSections replaces the default Collections section, so include @frogbotai/ui/admin/rsc#CollectionsSection to keep it. See Admin navigation for New Chat and Recents examples.
Chat
Chat slots customize the conversation, greeting, and message actions:graphics.Icon
graphics.Icon is the compact mark used in navigation.
graphics.Logo
graphics.Logo is the full mark used on the login page.
Component props
Type server components in these slots withRootComponentServerProps:
req is optional:
- Sidebar, account menu, top bar, and custom
Navcomponents receivereq. Usereq?.frogbotto reach FrogBot. - Login page components (
beforeLogin,afterLogin, andgraphics.Logo) and the dashboard slots (beforeDashboardandafterDashboard) don’t receivereq. UsegetCachedFrogBot()fromfrogbotinstead.