Skip to main content
Lakebase Postgres is built on object storage, but 99.99999% of reads are served from high-performance local caches
/Community/Component specialized guide

Component specialized guide

Specialized and less common components for specific use cases

View as Markdown

A comprehensive reference for specialized and less commonly used MDX components in Neon 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 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):

# Neon 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 console.neon.tech
2. Create your first project
3. Connect using your preferred client

Media components

Components for embedding and displaying multimedia content.

YoutubeIframe

Set title to a descriptive video name for screen readers. Use start={seconds} to begin at a specific time. Existing query parameters in embedId are preserved.

Embedded YouTube video player.

<YoutubeIframe embedId="IcoOpnAcO1Y" title="Create anonymized database previews with Neon and Neosync" />

Live preview:


Video

Native video player component.

<Video
  sources={[{ src: '/videos/pages/doc/neon-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 />
<NewPricing />
<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.

Public Preview

This feature is in Public Preview. Please provide Feedback from the Neon Console or by connecting with us on Discord.

Beta

This feature is in beta. Please give us Feedback from the Neon Console or by connecting with us on Discord. For more ways to reach us, see Send feedback.

New pricing plans

On February 19th, 2024, Neon will launch new, simplified pricing plans. You can see the details of all the plans here.

New feature

If you are looking to migrate your database to Neon, 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 Neon? 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 Neon Serverless Driver, general connection advice," />

Live preview:

AI assistant support

Neon's Agent Skills give AI coding assistants context about the Neon Serverless Driver, general connection advice, and other Neon 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.

CategoryWhat it enables
Project management (projects)List, create, describe, and delete projects; count projects; get project and branch consumption; list organizations
Branch management (branches)Create, reset, and delete branches; manage Postgres roles and databases
Compute endpoints (endpoints)List, create, start, suspend, and restart branch computes
Snapshots (snapshots)Create, restore, and schedule snapshots
Schema (schema)Inspect tables and columns; compare schemas
SQL (querying)Execute queries and transactions; apply schema changes on a temporary branch; run the same diagnostics as neon inspect db
Managed Better Auth (neon_auth)Provision Auth; configure branch settings (localhost access, email and password, email provider, plugins, webhooks); manage OAuth providers, the OAuth provider plugin and its clients, trusted domains, and users
Neon Data API (data_api)Enable, update, and disable the Data API for a branch
Observability (observability)Query function and storage logs; check AI Gateway availability
Documentation (docs)Search and read Neon docs, the API reference, guides, the PostgreSQL tutorial, the blog, and the changelog from within your assistant (no OAuth required)
Functions (functions)List, deploy, update, and delete Neon Functions
Object storage (storage)Manage buckets and objects; create presigned URLs
Realtime (realtime)Enable and disable Realtime for a branch; get and rotate its secret

Search and navigation tools (search across projects, fetch resource details by ID) are available by default but disabled in project-scoped mode.

Schema tools accept schema-qualified table names, such as crm.contacts. An unqualified name resolves against the database search_path, which defaults to the public schema.

note

The observability tools query Neon Functions logs and object storage logs, which are part of the Neon backend, currently available in AWS US East (Ohio) (aws-us-east-2), AWS US East (N. Virginia) (aws-us-east-1), AWS Europe (Frankfurt) (aws-eu-central-1), and AWS Asia Pacific (Singapore) (aws-ap-southeast-1). Support is expanding toward all regions. Log querying returns results only for projects in a supported region. Database diagnostics via inspect_database are under querying, not observability.


Community components

Components for community engagement and interaction.

CommunityBanner

Community engagement banner for promoting community participation.

<CommunityBanner buttonText="Join Discord" buttonUrl="https://neon.com/discord" logo="discord">
  Connect with the Neon community!
</CommunityBanner>

Live preview:

Connect with the Neon community!

Join Discord

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

CategoryComponentsUse Case
Code DisplayExternalCodeExternal code embedding
Media ComponentsYoutubeIframe, VideoMultimedia content
Specialized Shared ComponentsFeature Announcements, EarlyAccessPropsFeature status indicators
SDK ComponentsGetting Started, SDK Type ComponentsAuto-generated SDK documentation
Utility ComponentsRequestForm, ChatOptionsSpecialized UI elements
Specialized ComponentsAgentSkillsTip, MCPToolsComplex and specialized functionality
Community ComponentsCommunityBannerCommunity engagement

For commonly used components, see the Component Guide.

Last updated on

Was this page helpful?
Edit on GitHub