UI Componentsmdxui
Component Types
Semantic component type definitions for MDX
Component Types
mdxui provides a comprehensive system of component type definitions that describe the semantic structure, props, styling hooks, and output formats for UI components.
Overview
Component types are defined in MDX files with structured frontmatter that specifies:
- Props - Input properties using ai-functions schema syntax
- Parts - Semantic CSS slots for styling
- CSS Variables - Theming customization points
- JSON-LD Mapping - Schema.org mappings for Thing components
Categories
Components are organized into categories:
| Category | Components | Purpose |
|---|---|---|
| layout | App, Site, Page, Section, Layout, Header, Footer, Sidebar | Page structure and navigation |
| landing | Hero, Features, Pricing, CTA, LandingPage, Testimonials, Stats, FAQ | Marketing pages |
| content | Docs, Blog, BlogPost, Directory, API, Article | Content presentation |
| app | Dashboard, Marketplace, DeveloperDashboard, View, ListView, DetailView, FormView | Application interfaces |
| media | Slides, Video, Screenshot, Image | Media content |
| thing | Person, Product, Article, Organization | Schema.org entities |
| component | Card, Nav, Modal, Table, Team | Reusable UI components |
Usage
Loading Types
Filtering by Category
Generating TypeScript
Output Formats
Component types can render to multiple formats:
- html - Standard HTML output
- markdown - Markdown representation
- json - Structured JSON data
- svg - Vector graphics (for screenshots/diagrams)
- png - Raster images
Relationship to buildercss
Component types complement buildercss document templates:
- buildercss provides page-level templates (Website, Blog, Docs, App)
- Component types provide granular component definitions within pages
The CSS parts and variables defined in component types align with buildercss's semantic CSS approach.
Next Steps
- Schema Format - Detailed syntax reference
- Type Loader API - Programmatic access
- Component Reference - All available components