Skip to content

Components

JustDocs comes with a rich set of components to enhance your documentation.

Overview

Components are reusable building blocks that you can use in your documentation to create rich, interactive content.

Available Components

Built-in Components

  • Code Blocks - Syntax-highlighted code with copy functionality
  • Callouts - Important notes, warnings, and tips
  • Cards - Featured content cards
  • Tabs - Tabbed content sections

Layout Components

  • Grid - Responsive grid layouts
  • Columns - Multi-column layouts
  • Containers - Content containers with various styles

Using Components

Import and use components in your markdown files:

import CustomCard from '../components/CustomCard.astro';

<CustomCard 
  title="Amazing Feature" 
  description="This feature is awesome!" 
/>

Creating Custom Components

You can create your own components using Astro’s component system. Check out our examples for inspiration!