Skip to content

Commit cb813b0

Browse files
scalvertclaude
andcommitted
docs(example): demonstrate icon-only mode with custom header
Update the example to showcase the new McpInstallButton features: - Icon-only mode (no label prop) - Custom header text Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent fedd767 commit cb813b0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

examples/basic-docs/src/theme/NavbarItem/McpInstallNavbarItem.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,12 @@ import React from 'react';
22
import { McpInstallButton } from 'docusaurus-plugin-mcp-server/theme';
33

44
export default function McpInstallNavbarItem() {
5-
return <McpInstallButton serverUrl="https://example.com/mcp" serverName="example-docs" />;
5+
// Icon-only mode (no label) with custom header text
6+
return (
7+
<McpInstallButton
8+
serverUrl="https://example.com/mcp"
9+
serverName="example-docs"
10+
headerText="Install in your AI tool:"
11+
/>
12+
);
613
}

0 commit comments

Comments
 (0)