Skip to main content

Back to Component Library

Return to the main component library index
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg
Code Components
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg

Code Components

CustomCodeBlock

Advanced code block with placeholder replacement, pre/post notes, and optional expandable output section. Import:
import { CustomCodeBlock } from "/snippets/components/content/code.jsx";
Props:
PropTypeDefaultRequiredDescription
filenamestring-NoName of the file to display in header
iconstring-NoIcon to display in header
languagestring-NoProgramming language for syntax highlighting
highlightstring-NoLine numbers/ranges to highlight (e.g., “1-3,5”)
codeStringstring""NoThe code content to display
placeholderValuestring""NoValue to replace with
wrapbooleantrueNoWhether to wrap long lines
linesbooleantrueNoWhether to show line numbers
preNotestring""NoNote to display before code block
postNotestring""NoNote to display after code block
outputobject-NoOptional output configuration
output.codeStringstring-NoOutput code content
output.filenamestring-NoOutput filename
output.iconstring-NoOutput icon
output.languagestring-NoOutput language
Examples:
example.js
const apiKey = 'your-key-here';

CodeComponent

Simple code block wrapper component. Import:
import { CodeComponent } from "/snippets/components/content/code.jsx";
Props: Accepts standard CodeBlock props (language, filename, icon, etc.) Note: This is a wrapper around Mintlify’s CodeBlock component.

ComplexCodeBlock

Advanced code block with multiple features including placeholder replacement and output sections. Import:
import { ComplexCodeBlock } from "/snippets/components/content/code.jsx";
Props: Similar to CustomCodeBlock with additional complexity handling.

CodeSection

Section wrapper for organizing multiple code blocks. Import:
import { CodeSection } from "/snippets/components/content/code.jsx";
Props:
PropTypeDefaultRequiredDescription
childrenReactNode-YesCode blocks to display
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg
External Content
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg

External Content

ExternalContent

Reusable component for displaying external GitHub content with header and scrollable container. Import:
import { ExternalContent } from "/snippets/components/content/external-content.jsx";
Props:
PropTypeDefaultRequiredDescription
repoNamestring-YesRepository name (e.g., “livepeer/awesome-livepeer”)
githubUrlstring-YesFull GitHub repository URL
maxHeightstring"1000px"NoMaximum height of scrollable container
iconstring"github"NoIcon to display in header
childrenReactNode-YesContent to display (typically imported MDX)
Examples:
livepeer/docsView on GitHub

External content from the Livepeer documentation repository.

  • Automatically styled container
  • Link to GitHub source
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg
API Response Fields
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg

API Response Fields

ValueResponseField

ResponseField wrapper that displays a value with optional label and line styling. Import:
import { ValueResponseField } from "/snippets/components/content/responseField.jsx";
Props:
PropTypeDefaultRequiredDescription
descriptionstring|function-NoDescription text or function that returns description
postanynullNoValue to display after description
labelstring"value"NoLabel for the value
linebooleantrueNoWhether to show bottom border line
childrenReactNode-NoAdditional content
...propsobject-NoAdditional ResponseField props (name, type, default, required, etc.)

CustomResponseField

ResponseField wrapper that hides the bottom divider. Import:
import { CustomResponseField } from "/snippets/components/content/responseField.jsx";
Props:
PropTypeDefaultRequiredDescription
descriptionstring-NoDescription text
...propsobject-NoAll ResponseField props (name, type, default, required, post, etc.)

ResponseFieldExpandable

Groups multiple response fields in an expandable section. Import:
import { ResponseFieldExpandable } from "/snippets/components/content/responseField.jsx";
Props:
PropTypeDefaultRequiredDescription
fieldsArray|Object{}NoArray or object of field definitions
...propsobject-NoExpandable component props (title, etc.)

ResponseFieldAccordion

Groups multiple response fields in an accordion component. Import:
import { ResponseFieldAccordion } from "/snippets/components/content/responseField.jsx";
Props:
PropTypeDefaultRequiredDescription
fieldsArray|Object{}NoArray or object of field definitions
...propsobject-NoAccordion component props (title, etc.)

ResponseFieldGroup

Wrapper that chooses accordion or expandable layout at runtime. Import:
import { ResponseFieldGroup } from "/snippets/components/content/responseField.jsx";
Props:
PropTypeDefaultRequiredDescription
componentstring"accordion"NoComponent type: “accordion” or “expandable”
fieldsArray|Object{}NoArray or object of field definitions
...propsobject-NoComponent props (title, etc.)
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg
Data Display Components
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg

Data Display Components

BlogCard

Card component specifically designed for blog posts with reading time and excerpt support. Import:
import { BlogCard } from "/snippets/components/content/data.jsx";
Props:
PropTypeDefaultRequiredDescription
titlestring-YesThe title of the blog post
contentstring-YesHTML content to display
hrefstring-YesLink URL for the blog post
authorstring"Livepeer Team"NoAuthor name
datePostedstringnullNoPublication date
excerptstringnullNoShort excerpt (use if linking to external blog)
readingTimenumbernullNoEstimated reading time in minutes
iconstring"book-open"NoIcon for the card
ctastring"Read More"NoCall-to-action button text
imgstringnullNoOptional image URL

PostCard

Card component for displaying forum posts or articles with author, date, and metadata. Import:
import { PostCard } from "/snippets/components/content/data.jsx";
Props:
PropTypeDefaultRequiredDescription
titlestring-YesThe title of the post
contentstring-YesHTML content to display
hrefstring-YesLink URL for the card
authorstring"Unknown"NoAuthor name
datePostedstringnullNoDate the post was published
iconstring"book-open"NoIcon to display on the card
ctastring"Read More"NoCall-to-action button text
imgstringnullNoOptional image URL for the card

CardBlogDataLayout

Layout component for displaying multiple BlogCards in a vertical layout. Import:
import { CardBlogDataLayout } from "/snippets/components/content/data.jsx";
Props:
PropTypeDefaultRequiredDescription
itemsArray[]NoArray of BlogCard props objects
limitnumber-NoOptional limit on number of items

ColumnsBlogCardLayout

Layout component for displaying multiple BlogCards in columns. Import:
import { ColumnsBlogCardLayout } from "/snippets/components/content/data.jsx";
Props:
PropTypeDefaultRequiredDescription
itemsArray[]NoArray of BlogCard props objects
colsnumber2NoNumber of columns
limitnumber-NoOptional limit on number of items

CardColumnsPostLayout

Layout component for displaying multiple PostCards in columns. Import:
import { CardColumnsPostLayout } from "/snippets/components/content/data.jsx";
Props:
PropTypeDefaultRequiredDescription
colsnumber2NoNumber of columns to display
itemsArray[]NoArray of PostCard props objects
limitnumber-NoOptional limit on number of items

DiscordAnnouncements

Displays Discord announcements from discordAnnouncementsData.jsx. Import:
import { DiscordAnnouncements } from "/snippets/components/content/data.jsx";
Props:
PropTypeDefaultRequiredDescription
itemsArray[]NoArray of announcement objects
limitnumber-NoOptional limit on number of announcements
Note: Requires data from snippets/automations/discord/discordAnnouncementsData.jsx

LumaEvents

Displays Luma events from lumaEventsData.jsx. Import:
import { LumaEvents } from "/snippets/components/content/data.jsx";
Props:
PropTypeDefaultRequiredDescription
dataObject-YesEvent data object with upcoming and past arrays
limitnumber-NoOptional limit on number of events
typestring"upcoming"NoType of events: “upcoming”, “past”, or “all”
Note: Requires data from snippets/automations/luma/lumaEventsData.jsx
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg
Version Components
/snippets/assets/logos/Livepeer-Logo-Symbol-Theme.svg

Version Components

LatestVersion

Wrapper for GitHub action which fetches most recent release version of go-livepeer. Import:
import { LatestVersion } from "/snippets/components/content/release.jsx";
Props:
PropTypeDefaultRequiredDescription
versionstring-YesVersion string (typically from GitHub action)

Next: Layout Components

Continue to Layout Components →
Last modified on February 18, 2026