Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | import defaultMdxComponents from 'fumadocs-ui/mdx'; |
| 2 | import type { MDXComponents } from 'mdx/types'; |
| 3 | import type { ComponentProps } from 'react'; |
| 4 | import { Accordion as BaseAccordion, Accordions } from 'fumadocs-ui/components/accordion'; |
| 5 | import { Tabs, Tab, TabsList, TabsTrigger, TabsContent } from 'fumadocs-ui/components/tabs'; |
| 6 | import { Callout } from '@/components/callout'; |
| 7 | import { Step, Steps } from 'fumadocs-ui/components/steps'; |
| 8 | import { Card, Cards } from 'fumadocs-ui/components/card'; |
| 9 | import { ImageZoom } from 'fumadocs-ui/components/image-zoom'; |
| 10 | import { Heading } from '@/components/heading'; |
| 11 | import { YouTube } from '@/components/youtube'; |
| 12 | import { ProviderList } from '@/components/provider-list'; |
| 13 | import { FrameworkSelector, QuickstartFlow, FrameworkOption } from '@/components/quickstart'; |
| 14 | import { IntegrationTabs, IntegrationContent } from '@/components/quickstart/integration-tabs'; |
| 15 | import { ToolTypeFlow, ToolTypeOption } from '@/components/tool-type-selector'; |
| 16 | import { ConnectFlow, ConnectClientOption } from '@/components/connect-flow'; |
| 17 | import { Figure } from '@/components/figure'; |
| 18 | import { StepTitle } from '@/components/step-title'; |
| 19 | import { Video } from '@/components/video'; |
| 20 | import { CapabilityCard, CapabilityList } from '@/components/capability-card'; |
| 21 | import { TemplateCard, TemplateGrid } from '@/components/template-card'; |
| 22 | import { ToolkitsLanding } from '@/components/toolkits/toolkits-landing'; |
| 23 | import { ManagedAuthList } from '@/components/toolkits/managed-auth-list'; |
| 24 | import { Mermaid } from '@/components/mermaid'; |
| 25 | import { AIToolsBanner } from '@/components/ai-tools-banner'; |
| 26 | import { AgentFirstPrompt } from '@/components/agent-first-prompt'; |
| 27 | import { AgentSetupActions } from '@/components/agent-setup-actions'; |
| 28 | import { AgentSetupGrid } from '@/components/agent-setup-grid'; |
| 29 | import { DocsHero } from '@/components/docs-hero'; |
| 30 | import { HomeFeatures } from '@/components/home-features'; |
| 31 | import { SessionFlow } from '@/components/session-flow'; |
| 32 | import { TriggersFlow } from '@/components/triggers-flow'; |
| 33 | import { SlackBotFlow } from '@/components/slack-bot-flow'; |
| 34 | import { LocalWorkbenchFlow } from '@/components/local-workbench-flow'; |
| 35 | import { LocalSandboxBoundary } from '@/components/local-sandbox-boundary'; |
| 36 | import { FileBuildup } from '@/components/file-buildup'; |
| 37 | import { RepoBrowser } from '@/components/repo-browser'; |
| 38 | import { AppLogo } from '@/components/standup-example'; |
| 39 | import { ImessageFlow } from '@/components/imessage-flow'; |
| 40 | import { WorkbenchFlow } from '@/components/workbench-flow'; |
| 41 | import { AuthConfigFlow } from '@/components/auth-config-flow'; |
| 42 | import { WhiteLabelFlow } from '@/components/white-label-flow'; |
| 43 | import { ImportConnectionFlow } from '@/components/import-connection-flow'; |
| 44 | import { HomeSurfaces } from '@/components/home-surfaces'; |
| 45 | import { HomeResources } from '@/components/home-resources'; |
| 46 | import { Glossary, GlossaryTerm } from '@/components/glossary'; |
| 47 | import { ApiBaseUrl } from '@/components/api-base-url'; |
| 48 | import { ApiEndpointsTable } from '@/components/api-endpoints-table'; |
| 49 | import { ClaudeMockUI } from '@/components/claude-mock-ui'; |
| 50 | import { InChatAuthTerminal } from '@/components/in-chat-auth-terminal'; |
| 51 | import { MediaSplit } from '@/components/media-split'; |
| 52 | import { PackageInstall } from '@/components/package-install'; |
| 53 | import { ManageConnectionsVisual } from '@/components/manage-connections-visual'; |
| 54 | import { ConnectionRefreshVisual } from '@/components/connection-refresh-visual'; |
| 55 | import { ZdrLogVisual } from '@/components/zdr-log-visual'; |
| 56 | import { |
| 57 | ShieldCheck, |
| 58 | Route as RouteIcon, |
| 59 | Key, |
| 60 | Search, |
| 61 | Wrench, |
| 62 | Database, |
| 63 | Zap, |
| 64 | Rocket, |
| 65 | Code, |
| 66 | Blocks, |
| 67 | Plug, |
| 68 | Play, |
| 69 | Terminal, |
| 70 | Palette, |
| 71 | BookOpen, |
| 72 | Monitor, |
| 73 | MessageCircle, |
| 74 | LayoutDashboard, |
| 75 | } from 'lucide-react'; |
| 76 | |
| 77 | function slugify(text: string): string { |
| 78 | return text |
| 79 | .toLowerCase() |
| 80 | .replace(/[^a-z0-9]+/g, '-') |
| 81 | .replace(/(^-|-$)/g, ''); |
| 82 | } |
| 83 | |
| 84 | export function Accordion({ id, title, ...props }: ComponentProps<typeof BaseAccordion>) { |
| 85 | return ( |
| 86 | <BaseAccordion |
| 87 | id={id ?? (typeof title === 'string' ? slugify(title) : undefined)} |
| 88 | title={title} |
| 89 | {...props} |
| 90 | /> |
| 91 | ); |
| 92 | } |
| 93 | |
| 94 | export { Accordions }; |
| 95 | |
| 96 | export function getMDXComponents(components?: MDXComponents): MDXComponents { |
| 97 | return { |
| 98 | ...defaultMdxComponents, |
| 99 | h2: props => <Heading as="h2" {...props} />, |
| 100 | h3: props => <Heading as="h3" {...props} />, |
| 101 | h4: props => <Heading as="h4" {...props} />, |
| 102 | img: props => <ImageZoom {...(props as ComponentProps<typeof ImageZoom>)} />, |
| 103 | YouTube, |
| 104 | Tabs, |
| 105 | Tab, |
| 106 | TabsList, |
| 107 | TabsTrigger, |
| 108 | TabsContent, |
| 109 | Accordion, |
| 110 | Accordions, |
| 111 | Callout, |
| 112 | Step, |
| 113 | Steps, |
| 114 | Card, |
| 115 | Cards, |
| 116 | ProviderList, |
| 117 | FrameworkSelector, |
| 118 | QuickstartFlow, |
| 119 | FrameworkOption, |
| 120 | IntegrationTabs, |
| 121 | IntegrationContent, |
| 122 | ToolTypeFlow, |
| 123 | ToolTypeOption, |
| 124 | ConnectFlow, |
| 125 | ConnectClientOption, |
| 126 | Figure, |
| 127 | Video, |
| 128 | CapabilityCard, |
| 129 | CapabilityList, |
| 130 | TemplateCard, |
| 131 | TemplateGrid, |
| 132 | ToolkitsLanding, |
| 133 | ManagedAuthList, |
| 134 | Mermaid, |
| 135 | AIToolsBanner, |
| 136 | AgentFirstPrompt, |
| 137 | AgentSetupActions, |
| 138 | AgentSetupGrid, |
| 139 | DocsHero, |
| 140 | HomeFeatures, |
| 141 | SessionFlow, |
| 142 | TriggersFlow, |
| 143 | SlackBotFlow, |
| 144 | LocalWorkbenchFlow, |
| 145 | LocalSandboxBoundary, |
| 146 | FileBuildup, |
| 147 | RepoBrowser, |
| 148 | AppLogo, |
| 149 | ImessageFlow, |
| 150 | WorkbenchFlow, |
| 151 | AuthConfigFlow, |
| 152 | WhiteLabelFlow, |
| 153 | ImportConnectionFlow, |
| 154 | HomeSurfaces, |
| 155 | HomeResources, |
| 156 | StepTitle, |
| 157 | Glossary, |
| 158 | GlossaryTerm, |
| 159 | ApiBaseUrl, |
| 160 | ApiEndpointsTable, |
| 161 | ClaudeMockUI, |
| 162 | InChatAuthTerminal, |
| 163 | MediaSplit, |
| 164 | PackageInstall, |
| 165 | ManageConnectionsVisual, |
| 166 | ConnectionRefreshVisual, |
| 167 | ZdrLogVisual, |
| 168 | // Lucide icons |
| 169 | ShieldCheck, |
| 170 | RouteIcon, |
| 171 | Key, |
| 172 | Search, |
| 173 | Wrench, |
| 174 | Database, |
| 175 | Zap, |
| 176 | Rocket, |
| 177 | Code, |
| 178 | Blocks, |
| 179 | Plug, |
| 180 | Play, |
| 181 | Terminal, |
| 182 | Palette, |
| 183 | BookOpen, |
| 184 | Monitor, |
| 185 | MessageCircle, |
| 186 | LayoutDashboard, |
| 187 | ...components, |
| 188 | }; |
| 189 | } |