Skip to main content

Pathfinder 1.0 Just launched! Get it now with special launch pricing Learn more

Using Custom Components

There are a number of pre-built components useful for documentation sites that are already included in the Pathfinder theme. However, you may want to include your own custom components. You can easily do this by importing into your .mdx files.

Tip

Add the class not-content to the component to cancel out any default markdown styling.

Example Custom Component

Let’s create a simple Card component as an example. First, create your component in the components directory:

Using the Component

Here’s how the custom Card component looks when used in your documentation:

Getting Started

Learn how to integrate our theme into your project

Check out our initial setup guide to get started.