@devries-cameron20 / composio-1 / commits / 74d57483f
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): position Copy markdown button at top right

Move button above title, aligned right like Vercel AI SDK docs. Style as subtle text button matching the reference design. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Jan 19, 2026 at 14:18 UTC 74d57483ff8095d6f59736696de277733e88f830
2 files changed +6 -5
docs/app/(home)/docs/[[...slug]]/page.tsx
+4 -3
@@ -22,11 +22,12 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {
22
23 return (
24 <DocsPage toc={data.toc} full={data.full} footer={{ enabled: false }} tableOfContentPopover={{ enabled: false }}>
25 - <DocsTitle>{data.title}</DocsTitle>
26 - <DocsDescription>{data.description}</DocsDescription>
27 - <div className="flex items-center gap-2 mt-2 mb-6">
25 + <div className="flex items-center justify-between mb-2">
26 + <div className="flex-1" />
27 <CopyPage path={page.url} />
28 </div>
29 + <DocsTitle>{data.title}</DocsTitle>
30 + <DocsDescription className="mb-6">{data.description}</DocsDescription>
31 <DocsBody>
32 <MDX
33 components={getMDXComponents({
docs/components/copy-page.tsx
+2 -2
@@ -36,7 +36,7 @@ export function CopyPage({ path }: CopyPageProps) {
36 <button
37 onClick={handleCopy}
38 disabled={state === 'loading'}
39 - className="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-fd-muted-foreground hover:text-fd-foreground bg-fd-secondary hover:bg-fd-accent rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 disabled:opacity-50"
39 + className="inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground hover:text-fd-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 disabled:opacity-50"
40 aria-label="Copy page as markdown"
41 >
42 {state === 'loading' ? (
@@ -46,7 +46,7 @@ export function CopyPage({ path }: CopyPageProps) {
46 ) : (
47 <Copy className="w-4 h-4" aria-hidden="true" />
48 )}
49 - {state === 'copied' ? 'Copied!' : 'Copy page'}
49 + {state === 'copied' ? 'Copied!' : 'Copy markdown'}
50 </button>
51 );
52 }