Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
refactor: export Accordions from mdx-components
Both Accordion and Accordions now imported from the same place in faq-section and auth-details-section. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 11, 2026 at 20:39 UTC
bc57ab3a3def69ef9d8ebc0534c7db5e9b84d36d
3 files changed
+5
-6
docs/components/toolkits/auth-details-section.tsx
+1
-2
@@ -2,8 +2,7 @@
2
3
import { Key } from 'lucide-react';
4
import { TypeTable } from 'fumadocs-ui/components/type-table';
5
-import { Accordions } from 'fumadocs-ui/components/accordion';
6
-import { Accordion } from '@/mdx-components';
5
+import { Accordion, Accordions } from '@/mdx-components';
6
import type { AuthConfigDetail, AuthConfigField } from '@/types/toolkit';
7
8
interface AuthDetailsSectionProps {
docs/components/toolkits/faq-section.tsx
+1
-2
@@ -1,8 +1,7 @@
1
'use client';
2
3
import { HelpCircle } from 'lucide-react';
4
-import { Accordions } from 'fumadocs-ui/components/accordion';
5
-import { Accordion } from '@/mdx-components';
4
+import { Accordion, Accordions } from '@/mdx-components';
5
6
export interface FaqItem {
7
question: string;
docs/mdx-components.tsx
+3
-2
@@ -3,7 +3,8 @@ import type { MDXComponents } from 'mdx/types';
3
import { Heading } from '@/components/heading';
4
import { YouTube } from '@/components/youtube';
5
import { Tabs, Tab, TabsList, TabsTrigger, TabsContent } from 'fumadocs-ui/components/tabs';
6
-import { Accordion as BaseAccordion, Accordions } from 'fumadocs-ui/components/accordion';
6
+import { Accordion as BaseAccordion, Accordions as BaseAccordions } from 'fumadocs-ui/components/accordion';
7
+export { BaseAccordions as Accordions };
8
import type { ComponentProps } from 'react';
9
function slugify(text: string): string {
10
return text.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/(^-|-$)/g, '');
@@ -56,7 +57,7 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents {
57
TabsTrigger,
58
TabsContent,
59
Accordion,
59
- Accordions,
60
+ Accordions: BaseAccordions,
61
Callout,
62
Step,
63
Steps,