Skip to main content
Root Components customize the Admin Panel across every route. Configure them through the root 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

Use beforeLogin and afterLogin to place content around the login fields:
Use the sidebar slots without replacing its built-in behavior:

Account menu

Add items to the account menu or replace its Log out item:
See Customize the account menu for the item order and a sign-out example. Nav replaces the complete sidebar. Use navItems or navSections when you only need to change its contents.
Navigation items are empty by default. Setting 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 is the full mark used on the login page.

Component props

Type server components in these slots with RootComponentServerProps:
Root component props: req is optional:
  • Sidebar, account menu, top bar, and custom Nav components receive req. Use req?.frogbot to reach FrogBot.
  • Login page components (beforeLogin, afterLogin, and graphics.Logo) and the dashboard slots (beforeDashboard and afterDashboard) don’t receive req. Use getCachedFrogBot() from frogbot instead.