MDX.org.ai

Component Reference

All available component types organized by category

Component Reference

Complete reference of all component types organized by category.

Layout Components

Structural components for page organization and navigation.

App

Root application wrapper with theme and routing support.

PropTypeDefaultDescription
namestring?-Application name
theme'light' | 'dark' | 'system''system'Theme mode
navNavItem[]?-Navigation items
sidebarbooleantrueShow sidebar

Site

Website wrapper with header, navigation, and footer.

PropTypeDefaultDescription
siteNamestring-Site name
logoMedia?-Site logo
navNavItem[]-Navigation items
footerNavNavItem[]?-Footer navigation
theme'light' | 'dark' | 'system''system'Theme mode

Page

Generic page wrapper with SEO and layout options.

PropTypeDefaultDescription
titlestring-Page title
descriptionstring?-Page description
layout'default' | 'wide' | 'narrow' | 'full''default'Layout variant
seoSEO?-SEO metadata

Section

Content section with optional heading and background.

PropTypeDefaultDescription
idstring?-Section ID for anchoring
titlestring?-Section title
subtitlestring?-Section subtitle
background'default' | 'muted' | 'accent' | 'dark''default'Background variant
padding'none' | 'sm' | 'md' | 'lg' | 'xl''lg'Padding size

Site header with logo, navigation, and actions.

PropTypeDefaultDescription
logoMedia?-Logo image
navNavItem[]?-Navigation items
actionsAction[]?-Action buttons
stickybooleantrueSticky header
variant'default' | 'centered' | 'split' | 'minimal''default'Layout variant

Site footer with columns, social links, and newsletter.

PropTypeDefaultDescription
logoMedia?-Footer logo
columnsFooterColumn[]?-Navigation columns
socialSocialLink[]?-Social media links
newsletterNewsletterProps?-Newsletter signup
copyrightstring?-Copyright text

Collapsible sidebar navigation.

PropTypeDefaultDescription
navNavItem[]-Navigation items
collapsedbooleanfalseCollapsed state
collapsiblebooleantrueAllow collapsing
widthnumber280Sidebar width

Landing Components

Marketing page sections for product and company websites.

Hero

Hero section with headline, subtitle, and CTAs.

PropTypeDefaultDescription
titlestring-Main headline
subtitlestring?-Supporting text
primaryActionAction?-Primary CTA button
secondaryActionAction?-Secondary CTA
mediaMedia?-Hero image/video
layout'centered' | 'split' | 'stacked''split'Layout variant
background'default' | 'gradient' | 'image' | 'video''default'Background type

Features

Feature showcase section with grid layout.

PropTypeDefaultDescription
titlestring?-Section title
subtitlestring?-Section subtitle
itemsFeature[]-Feature items
layout'grid' | 'list' | 'alternating' | 'cards''grid'Layout variant
columns2 | 3 | 43Grid columns

Pricing

Pricing table with tier comparison.

PropTypeDefaultDescription
titlestring?-Section title
tiersPricingTier[]-Pricing tiers
billingPeriod'monthly' | 'yearly''monthly'Default period
showTogglebooleantrueShow billing toggle

Testimonials

Customer testimonials and social proof.

PropTypeDefaultDescription
titlestring?-Section title
itemsTestimonial[]-Testimonial items
layout'grid' | 'carousel' | 'masonry''grid'Layout variant
showRatingbooleantrueShow star ratings

Stats

Statistics display with animated counters.

PropTypeDefaultDescription
titlestring?-Section title
itemsStat[]-Stat items
layout'row' | 'grid' | 'cards''row'Layout variant
animatedbooleantrueAnimate counting

CTA

Call-to-action section.

PropTypeDefaultDescription
titlestring-Headline
descriptionstring?-Supporting text
primaryActionAction?-Primary button
secondaryActionAction?-Secondary button
background'default' | 'accent' | 'gradient''accent'Background

FAQ

Frequently asked questions accordion.

PropTypeDefaultDescription
titlestring?-Section title
itemsFAQItem[]-FAQ items
layout'accordion' | 'grid' | 'two-column''accordion'Layout variant
allowMultiplebooleanfalseAllow multiple open

LandingPage

Complete landing page with all sections.

PropTypeDefaultDescription
heroHeroProps-Hero section
featuresFeaturesProps?-Features section
testimonialsTestimonialsProps?-Testimonials
pricingPricingProps?-Pricing section
faqFAQProps?-FAQ section
ctaCTAProps?-CTA section

Content Components

Documentation and content presentation components.

Docs

Documentation layout with sidebar navigation.

PropTypeDefaultDescription
titlestring?-Page title
navNavItem[]-Sidebar navigation
tocTOCItem[]?-Table of contents
prevNavLink?-Previous page
nextNavLink?-Next page
editUrlstring?-Edit on GitHub URL

Blog

Blog listing page.

PropTypeDefaultDescription
titlestring?-Blog title
postsArticle[]-Blog posts
layout'grid' | 'list' | 'featured''grid'Layout variant
paginationPagination?-Pagination config

BlogPost

Full blog post page.

PropTypeDefaultDescription
titlestring-Post title
contentMDXContent-Post content
authorPerson-Author info
datestring-Publish date
tocbooleantrueShow table of contents
sharebooleantrueShow share buttons
relatedArticle[]?-Related posts

Directory

Directory/listing page.

PropTypeDefaultDescription
titlestring-Directory title
itemsDirectoryItem[]-Directory items
layout'grid' | 'list' | 'table''grid'Layout variant
filtersFilter[]?-Filter options
searchablebooleantrueEnable search

API

API documentation page.

PropTypeDefaultDescription
titlestring-API title
baseUrlstring?-Base URL
versionstring?-API version
endpointsAPIEndpoint[]-API endpoints
authAuthConfig?-Authentication info

App Components

Application interface components.

Dashboard

Dashboard layout with metrics and widgets.

PropTypeDefaultDescription
titlestring-Dashboard title
statsStat[]?-Key metrics
widgetsWidget[]?-Dashboard widgets
navNavItem[]?-Navigation
layout'default' | 'compact' | 'wide''default'Layout

ListView

List view for data display.

PropTypeDefaultDescription
titlestring?-View title
itemsany[]-Data items
columnsColumn[]-Column definitions
selectablebooleanfalseEnable selection
paginationPagination?-Pagination

DetailView

Detail view for single item display.

PropTypeDefaultDescription
titlestring-Item title
dataRecord<string, any>-Item data
sectionsDetailSection[]?-Content sections
actionsAction[]?-Action buttons

FormView

Form view for data entry.

PropTypeDefaultDescription
titlestring?-Form title
fieldsFormField[]-Form fields
submitLabelstring'Submit'Submit button text
onSubmit(data) => void-Submit handler

Media Components

Media content components.

Slides

Presentation/slideshow component.

PropTypeDefaultDescription
titlestring?-Presentation title
slidesSlide[]-Slide content
aspectRatio'16:9' | '4:3' | '1:1''16:9'Slide ratio
showControlsbooleantrueShow navigation

Video

Video player component.

PropTypeDefaultDescription
srcstring-Video source URL
posterstring?-Poster image
autoPlaybooleanfalseAuto-play
controlsbooleantrueShow controls
aspectRatio'16:9' | '4:3' | '21:9''16:9'Aspect ratio

Screenshot

Screenshot/image with device frame.

PropTypeDefaultDescription
srcstring-Image source
altstring-Alt text
device'browser' | 'phone' | 'tablet' | 'none''browser'Device frame
captionstring?-Image caption

Image

Responsive image component.

PropTypeDefaultDescription
srcstring-Image source
altstring-Alt text
widthnumber?-Image width
heightnumber?-Image height
captionstring?-Image caption
loading'lazy' | 'eager''lazy'Loading strategy

Thing Components

Schema.org entity components with JSON-LD support.

Person

Person/author card.

PropTypeDefaultDescription
namestring-Person name
rolestring?-Job title/role
avatarMedia?-Profile image
biostring?-Biography
emailstring?-Email address
socialSocialLink[]?-Social links

Product

Product card with pricing.

PropTypeDefaultDescription
namestring-Product name
descriptionstring?-Description
pricestring-Price
imageMedia?-Product image
ratingnumber?-Rating (1-5)
inStockbooleantrueAvailability

Organization

Company/organization card.

PropTypeDefaultDescription
namestring-Organization name
logoMedia?-Logo
descriptionstring?-Description
urlstring?-Website URL
industrystring?-Industry
employeesstring?-Employee count

Article

Article/blog post card.

PropTypeDefaultDescription
titlestring-Article title
excerptstring?-Summary
imageMedia?-Featured image
authorPerson?-Author
datestring-Publish date
urlstring?-Article URL

UI Components

Reusable interface components.

Card

Versatile content card.

PropTypeDefaultDescription
titlestring?-Card title
descriptionstring?-Description
imageMedia?-Card image
hrefstring?-Link URL
variant'default' | 'outline' | 'elevated''default'Style variant

Navigation component.

PropTypeDefaultDescription
itemsNavItem[]-Navigation items
orientation'horizontal' | 'vertical''horizontal'Layout
variant'default' | 'pills' | 'underline''default'Style variant

Modal dialog.

PropTypeDefaultDescription
openbooleanfalseOpen state
titlestring?-Modal title
size'sm' | 'md' | 'lg' | 'xl''md'Modal size
onClose() => void-Close handler

Table

Data table with sorting and filtering.

PropTypeDefaultDescription
columnsColumn[]-Column definitions
dataany[]-Table data
sortablebooleantrueEnable sorting
selectablebooleanfalseEnable selection
paginationbooleantrueEnable pagination

Team

Team section displaying members.

PropTypeDefaultDescription
titlestring?-Section title
membersPerson[]-Team members
layout'grid' | 'list' | 'featured''grid'Layout variant
columns2 | 3 | 4 | 54Grid columns