Back to Component Library
Return to the main component library index
Buttons & Actions
DownloadButton
Interactive download button with lazy loading for performance optimization. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
label | string | "Download" | No | Button text label |
icon | string | "download" | No | Left icon name |
downloadLink | string | - | Yes | URL of the file to download |
rightIcon | string | "" | No | Optional right icon name |
border | boolean | false | No | Whether to show a border around the button |
- Basic
- Custom Label
- With Icons
- Code
BasicBtn
Placeholder component for basic button functionality. Currently returns empty div. Import:Icons & Branding
LivepeerIcon
Theme-aware Livepeer logo icon that automatically adapts to light/dark mode. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
size | number | 16 | No | Icon size in pixels |
color | string | theme-aware | No | Custom color override (defaults to theme-aware color) |
- Default
- Custom Color
- Code
Default size
Size 24
Size 32
LivepeerIconFlipped
Horizontally flipped Livepeer icon. Useful for decorative purposes or directional indicators. Import:LivepeerIcon (accepts all Icon component props)
Examples:
- Example
- Code
Normal
Flipped
LivepeerSVG
Inline SVG version of the Livepeer logo. Uses em units for responsive sizing. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
size | number | 24 | No | Size parameter (currently unused, uses 1em) |
...props | object | - | No | Additional SVG props |
- Example
- Code
LivepeerIconOld
Legacy Livepeer icon component using the light symbol SVG file. Import:LivepeerIcon for new code.
Links & Navigation
GotoLink
Simple navigation link with icon for internal documentation pages. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
label | string | - | Yes | Link text/label |
relativePath | string | - | Yes | Relative URL path |
text | string | "" | No | Optional text to display before the link |
icon | string | "arrow-turn-down-right" | No | Icon to display |
- Basic
- With Text
- Custom Icon
- Code
GotoCard
Card component for navigation with link, icon, and optional CTA. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
label | string | - | Yes | Card title |
relativePath | string | - | Yes | Relative URL path |
icon | string | "arrow-turn-down-right" | No | Icon to display |
text | ReactNode | - | Yes | Card content |
cta | string | "" | No | Call-to-action button text |
...props | object | - | No | Additional Card component props |
- Basic
- With CTA
- Code
CustomCallout
A stylized callout box with customizable icon and colors. Automatically converts hex colors to rgba for proper opacity handling. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Content to display in the callout |
icon | string | "lightbulb" | No | Icon name to display |
color | string | theme accent | No | Primary color for icon, border, and background |
iconSize | number | 16 | No | Size of the icon in pixels |
textSize | string | "0.875rem" | No | Font size for the text content |
textColor | string | matches color | No | Text color (defaults to match icon color) |
- Info
- Warning
- Success
- Code
TipWithArrow
Callout box with an arrow indicator in the top-right corner. Similar to CustomCallout but includes an arrow icon. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Content to display in the tip |
icon | string | "lightbulb" | No | Main icon to display on the left |
arrowIcon | string | "arrow-up-right" | No | Arrow icon to display in top-right |
color | string | theme accent | No | Primary color for icons, border, and background |
iconSize | number | 16 | No | Size of the main icon in pixels |
arrowSize | number | 16 | No | Size of the arrow icon in pixels |
- Basic
- Custom Arrow
- Code
LinkArrow
Link component with arrow icon and optional newline. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
href | string | - | Yes | Link URL |
label | string | - | Yes | Link text |
newline | boolean | true | No | Whether to add a line break before the link |
borderColor | string | - | No | Optional border color |
- Example
- Code
Text & Typography
Subtitle
Styled subtitle text component with customizable styling. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
text | string | - | No | Subtitle text (alternative to children) |
children | ReactNode | - | No | Alternative content (alternative to text) |
style | object | {} | No | Custom styles object |
style.fontSize | string | "1rem" | No | Font size |
style.fontStyle | string | "italic" | No | Font style |
style.color | string | "var(--accent)" | No | Text color |
style.marginBottom | string | 0 | No | Bottom margin |
- Basic
- Custom Style
- Code
This is a subtitle
CopyText
Inline code with copy button. Displays text in a code block with a clickable copy button. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
text | string | - | Yes | The text to display and copy |
label | string | - | No | Optional label before the text |
- Basic
- With Label
- Code
0x1234567890abcdefCardTitleTextWithArrow
Card title component with arrow icon integrated into the title. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Title text content |
...cardProps | object | - | No | Additional Card component props |
- Example
- Code
Card Title with Arrow
AccordionTitleWithArrow
Accordion title component with arrow icon and optional link. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
text | string | - | Yes | Title text |
href | string | - | Yes | Link URL |
color | string | "var(--text)" | No | Text color |
- Example
- Code
Dividers
CustomDivider
Decorative horizontal divider with Livepeer branding icons on both ends. Optionally includes centered text between the divider lines. Icons automatically adapt to light/dark theme. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
middleText | string | "" | No | Optional text to display in the center of the divider |
color | string | "var(--border)" | No | Color for the middle text |
style | object | {} | No | Additional CSS styles |
style.margin | string | "24px 0" | No | Vertical margin |
style.fontSize | string | "16px" | No | Font size for middle text |
- Basic
- With Text
- Custom Color
- Code
Layout Primitives
Layout components for organizing content without inline styles in MDX files.FlexContainer
Flexbox container component for arranging items in rows or columns. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Content to display |
direction | string | "row" | No | Flex direction: “row” | “column” | “row-reverse” | “column-reverse” |
gap | string | "1rem" | No | Gap between items (CSS value) |
align | string | "flex-start" | No | Align items: “flex-start” | “center” | “flex-end” | “stretch” |
justify | string | "flex-start" | No | Justify content: “flex-start” | “center” | “flex-end” | “space-between” | “space-around” | “space-evenly” |
wrap | boolean | false | No | Allow wrapping |
style | object | {} | No | Additional inline styles |
- Row Layout
- Column Layout
- Centered
- Code
Card 1
Content 1
Card 2
Content 2
Card 3
Content 3
GridContainer
CSS Grid container component for grid layouts. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Content to display |
columns | string|number | - | No | Number of columns or CSS grid-template-columns value |
gap | string | "1rem" | No | Gap between items (CSS value) |
style | object | {} | No | Additional inline styles |
- 3 Columns
- Code
Card 1
Content
Card 2
Content
Card 3
Content
Spacer
Vertical or horizontal spacing component. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
size | string | "1rem" | No | Spacing size (CSS value) |
direction | string | "vertical" | No | Spacing direction: “vertical” | “horizontal” |
- Vertical Spacing
- Code
Card 1
Content
Card 2
Content
Table Primitives
Table components for structured data display without inline styles.StyledTable
Theme-aware table component with variant support. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Table content (thead, tbody, etc.) |
variant | string | "default" | No | Table variant: “default” | “bordered” | “minimal” |
style | object | {} | No | Additional inline styles |
- Default Table
- Code
| Name | Status |
|---|---|
| Item 1 | Active |
| Item 2 | Pending |
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Table cells |
header | boolean | false | No | Is this a header row? |
hover | boolean | false | No | Enable hover effect |
style | object | {} | No | Additional inline styles |
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Cell content |
align | string | "left" | No | Text alignment: “left” | “center” | “right” |
header | boolean | false | No | Is this a header cell? |
style | object | {} | No | Additional inline styles |
Container Primitives
Container components for grouping and organizing content.BorderedBox
Theme-aware bordered container component. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Content to display |
variant | string | "default" | No | Border variant: “default” | “accent” | “muted” |
padding | string | "1rem" | No | Internal padding (CSS value) |
borderRadius | string | "8px" | No | Border radius (CSS value) |
style | object | {} | No | Additional inline styles |
- Default
- Accent Variant
- Code
This is a bordered box with default styling.
CenteredContainer
Centered content container component. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Content to display |
maxWidth | string | "800px" | No | Maximum width (CSS value) |
padding | string | "0" | No | Internal padding (CSS value) |
style | object | {} | No | Additional inline styles |
- Centered Content
- Code
Centered Card
This card is centered with a max width of 600px.
FullWidthContainer
Full-width breakout container component for hero sections and full-width content. Import:| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
children | ReactNode | - | Yes | Content to display |
backgroundColor | string | - | No | Background color (CSS value or CSS variable) |
style | object | {} | No | Additional inline styles |
- Full Width
- Code
Full-width hero content
Next: Display Components
Continue to Display Components →