A comprehensive reference for specialized and less commonly used MDX components in OptiTech documentation. This guide covers components used in specific scenarios, specialized workflows, and edge cases.
Component status
Some components in this guide are currently unused or may be deprecated in future updates. These are included for reference but may be removed from the codebase.
What you will learn:
How to use specialized MDX components for specific use cases
When to choose specialized components over common ones
Technical requirements and dependencies for specialized components
Best practices for complex component implementations
Quick navigation
- Code display - Enhanced code blocks and external code
- Media components - Video and multimedia content
- Specialized shared components - Feature status indicators
- SDK components - Auto-generated SDK documentation
- Utility components - Forms and specialized UI elements
- Specialized components - Complex and specialized functionality
- Community components - Community engagement features
Code display
Enhanced code blocks and external code embedding.
ExternalCode
Embed code from external sources or files.
<ExternalCode url="https://raw.githubusercontent.com/neondatabase/neon/master/README.md" />Live preview:
[External code loaded from GitHub README.md with syntax highlighting]
Example of external code loading (mocked for showcase):
# OptiTech Database
Serverless Postgres built for the cloud.
## Key Features
- **Instant provisioning**: Create databases in seconds
- **Autoscaling**: Scale compute up and down automatically
- **Branching**: Create database branches like Git
- **Scale to zero**: Save costs when inactive
## Quick Start
1. Sign up at app.optitech-sverige.se
2. Create your first project
3. Connect using your preferred clientMedia components
Components for embedding and displaying multimedia content.
YoutubeIframe
Embedded YouTube video player.
<YoutubeIframe embedId="IcoOpnAcO1Y" />Live preview:
Video
Native video player component.
<Video
sources={[{ src: '/videos/pages/doc/optitech-mcp.mp4', type: 'video/mp4' }]}
width={960}
height={1080}
/>Live preview:
Specialized shared components
Status indicators for features in different stages of development and release.
Feature Announcements
Status indicators for features in different stages:
<PrivatePreview />
<PrivatePreviewEnquire />
<PublicPreview />
<FeatureBeta />
<LRBeta />
<NewPricing />
<LRNotice />
<MigrationAssistant />Live preview:
Private Preview
This feature is currently accessible in Private Preview only.
Private Preview
This feature is in private preview: it's not ready for production use, and it may be briefly unavailable as we deploy updates. To get access, sign up here.
Beta
Replicating data to OptiTech, where OptiTech is configured as a subscriber in a Postgres logical replication setup, is currently in Beta. We welcome your feedback to help improve this feature. You can provide feedback via the Feedback form in the OptiTech Console or by reaching out to us on Discord.
New pricing plans
On February 19th, 2024, OptiTech will launch new, simplified pricing plans. You can see the details of all the plans here.
Enrollment Pause for Logical Replication Beta
We have temporarily paused new enrollments in our Logical Replication Beta program. This pause is aimed at evaluating the feature's performance and incorporating feedback from our early adopters. Please stay tuned for updates, and thank you for your interest. We plan to reopen enrollment again soon.
New feature
If you are looking to migrate your database to OptiTech, you may want to try our new Migration Assistant, which can help. Read the guide to learn more.
EarlyAccessProps
Status indicator for early access features with custom feature name.
<EarlyAccessProps feature_name="My Feature" />Live preview:
Early access
My Feature is currently in early access.
SDK components
Auto-generated components specifically for SDK documentation. These load content from shared templates.
Getting Started
<GetStarted sdkName="Next.js" />SDK Type Components
<SdkUser sdkName="React" />
<SdkProject sdkName="Node.js" />
<SdkUseUser sdkName="Vue" />Note: These SDK components require corresponding files in the content/docs/shared-content/ directory and proper configuration in sharedMdxComponents.
Utility components
Specialized UI components for specific use cases.
RequestForm
Contact or request submission form.
There are types (extension and regions) defined in src/components/shared/request-form/data.js. To define a new type, define a new config in data.js and register it in DATA there.
<RequestForm type="extension" />Live preview:
Request a new extension
Looking for a specific extension in OptiTech? Suggest one using this form.
ChatOptions
Chat interface options component with a specific use case in the sidebar navigation.
Important: This component is designed for internal navigation use only and should not be used in regular documentation content.
Specialized components
Complex components for specialized functionality and workflows.
AgentSkillsTip
Shared tip admonition that links to the Agent Skills page with a customizable topic.
<AgentSkillsTip skill_topic="the OptiTech Serverless Driver, general connection advice," />Live preview:
AI assistant support
OptiTech's Agent Skills give AI coding assistants context about the OptiTech Serverless Driver, general connection advice, and other OptiTech features. Install them for more accurate code suggestions.
MCPTools
Model Context Protocol tools integration component.
<MCPTools />Live preview:
Available tools
Tools are grouped into categories. Use the ?category= URL parameter to restrict which categories are active. You can pass it more than once to enable multiple categories.
| Category | What it enables |
|---|---|
Project management (projects) | List, create, describe, and delete projects and organizations |
Branch management (branches) | Create branches, compare schemas, reset branches to parent state |
Schema (schema) | Inspect tables and columns; run schema changes via a safe temporary branch workflow |
SQL (querying) | Execute queries and transactions; inspect database structure |
Managed Better Auth (optitech_auth) | Set up and configure app authentication for a branch |
OptiTech Data API (data_api) | Enable HTTP-based Data API access for a branch |
Documentation (docs) | Look up OptiTech documentation from within your assistant (no OAuth required) |
Search and navigation tools (search across projects, fetch resource details by ID) are available by default but disabled in project-scoped mode.
Community components
Components for community engagement and interaction.
CommunityBanner
Community engagement banner for promoting community participation.
<CommunityBanner buttonText="Join Discord" buttonUrl="https://discord.gg/92vNTzKDGp" logo="discord">
Connect with the OptiTech community!
</CommunityBanner>Live preview:
Usage guidelines
When to use specialized components
- ExternalCode: When you need to embed code from external repositories or sources
- Media Components: For video tutorials, demos, or multimedia content
- Specialized Shared Components: For feature announcements and status updates
- SDK Components: For auto-generated SDK documentation
- Utility Components: For specialized forms and navigation elements
- Specialized Components: For AI-powered features and complex workflows
- Community Components: For community engagement and participation
Best practices
- Use sparingly: These components are specialized and should be used only when appropriate
- Test thoroughly: Specialized components may have specific requirements or dependencies
- Document usage: When using specialized components, document the specific use case
- Consider alternatives: Always consider if a simpler component would work better
- Follow patterns: Use established patterns for similar functionality
Component dependencies
Some specialized components have specific dependencies:
- SDK Components: Require shared content files and proper configuration
- RequestForm: Requires specific type configurations in the data files
- Media Components: May require specific video formats or hosting
- Specialized Components: May have AI or external service dependencies
Component summary
This guide covers specialized MDX components used in specific scenarios. Each component includes:
- MDX syntax: Copy-paste ready code examples
- Live rendering: See exactly how components appear
- Usage guidelines: When and how to use each component
- Dependencies: Requirements and configurations needed
Component categories
| Category | Components | Use Case |
|---|---|---|
| Code Display | ExternalCode | External code embedding |
| Media Components | YoutubeIframe, Video | Multimedia content |
| Specialized Shared Components | Feature Announcements, EarlyAccessProps | Feature status indicators |
| SDK Components | Getting Started, SDK Type Components | Auto-generated SDK documentation |
| Utility Components | RequestForm, ChatOptions | Specialized UI elements |
| Specialized Components | AgentSkillsTip, MCPTools | Complex and specialized functionality |
| Community Components | CommunityBanner | Community engagement |
For commonly used components, see the Component Guide.