Full Page Templates
Complete page layouts ready to use — copy the YAML, customize, and ship
Each template below shows a preview of what the page looks like, followed by the YAML source code you need to recreate it. Study the patterns, mix and match sections, and build your own.
Starter Templates
Dashboard Template
A data-rich dashboard with stat cards, charts placeholder, and activity feed. Perfect for admin panels, analytics dashboards, and monitoring tools.
Preview
Dashboard Overview
Revenue Chart
Chart placeholder — use type: chart with your preferred charting library integration.
Recent Activity
• User john@example.com signed up
• Order #4521 completed ($129.00)
• Support ticket #891 resolved
• New deployment v2.4.1 released
YAML Source
view:
name: Dashboard
title: Dashboard
body:
- type: heading
text: Dashboard Overview
level: 2
- type: grid
columns: 4
children:
- type: stat_card
label: Total Users
value: "12,847"
change: "+12%"
trend: up
- type: stat_card
label: Revenue
value: "$48.2K"
change: "+8.3%"
trend: up
# ... more stat cards
- type: grid
columns: 2
children:
- type: card
title: Revenue Chart
body: Chart placeholder
- type: card
title: Recent Activity
children:
- type: text
content: "• User signed up"
Key Patterns Used
stat_card
Display KPIs with label, value, change percentage, and trend direction (up/down).
grid columns: N
Responsive grid layout. Use columns 2-4 for different density levels.
Nested cards
Cards inside grids create structured sections. Use body for text, children for components.
Landing Page
Marketing landing page with hero, feature grid, social proof stats, and call-to-action. Ideal for product launches, SaaS marketing, and project homepages.
Preview
Ship Faster with YAML
Build production React apps in minutes, not hours. No TypeScript expertise required.
Lightning Fast
Write YAML, get React through the yamlCase-controlled compiler.
85 Templates
Pre-built components for every use case — cards, forms, tables, charts, and more.
Type-Safe Output
Generated TypeScript passes strict type checking. Production-ready from day one.
YAML Source
view:
name: LandingPage
title: Your Product
body:
- type: hero
title: Ship Faster with YAML
subtitle: Build production React apps in minutes
align: center
- type: grid
columns: 3
children:
- type: card
title: "Fast"
body: Write YAML, get React
- type: card
title: "Beautiful"
body: 85 pre-built templates
- type: card
title: "Safe"
body: Type-safe TypeScript output
- type: flex
justify: center
gap: 48
children:
- type: stat_card
label: Components
value: "115"
Key Patterns Used
hero
Full-width banner with title, subtitle, and optional CTA. Use align: center for marketing pages.
flex + stat_card
Horizontal row of stats for social proof. Use justify: center and gap for spacing.
Card body prop
Use body: for simple text descriptions. Use children: for complex nested content.
Blog / Article Layout
Content-focused article layout with rich text, author info, and related content sidebar. Great for documentation, blog posts, and knowledge bases.
Preview
Getting Started with yamlCase
yamlCase transforms how you build React applications. Instead of writing hundreds of lines of TypeScript and JSX, you describe your UI in clean, readable YAML.
In this guide, we will walk through the core concepts: views, components, templates, state management, and styling. By the end, you will be able to build complete React applications using nothing but YAML.
About the Author
Written by the yamlCase team. We build tools that make React accessible to everyone.
Table of Contents
1. What is yamlCase?
2. Your First View
3. Adding Components
4. Templates & Reuse
5. State & Events
Related Articles
• Template Authoring Guide
• Advanced CSS-in-YAML
• State Management Patterns
YAML Source
view:
name: BlogPost
title: Article Title
body:
- type: grid
columns: 2
children:
- type: container
children:
- type: heading
text: Article Title
level: 2
- type: text
content: Lead paragraph...
variant: lead
- type: text
content: Body text...
- type: divider
- type: card
title: About the Author
body: Author bio text
- type: container
children:
- type: card
title: Table of Contents
children:
- type: text
content: "1. Section One"
- type: card
title: Related Articles
children:
- type: text
content: "• Related post"
Key Patterns Used
grid columns: 2
Two-column layout with main content and sidebar. Responsive on mobile.
text variant: lead
Larger introductory paragraph. Use for article leads and section intros.
Nested containers
Container inside grid columns creates independent content zones.
Settings Page
User settings page with organized sections, form inputs, and toggle switches. Use for app preferences, account settings, and configuration panels.
Preview
Account Settings
Profile
Display Name
Input field placeholder — use type: input for real forms
Input field placeholder — use type: input for real forms
Profile settings control how others see you in the platform.
Notifications
Email Notifications
Toggle: enabled
Push Notifications
Toggle: disabled
Security
Password change form, two-factor authentication toggle, active sessions list.
YAML Source
view:
name: Settings
title: Settings
state:
displayName: "''"
email: "''"
emailNotifications: "true"
pushNotifications: "false"
handlers:
- name: handleSave
params: "()"
body: |
console.log('Saving...', { displayName, email });
body:
- type: heading
text: Account Settings
level: 2
- type: card
title: Profile
children:
- type: input
label: Display Name
bind: displayName
- type: input
label: Email
bind: email
- type: card
title: Notifications
children:
- type: toggle
label: Email Notifications
bind: emailNotifications
Product Page
E-commerce product detail page with image area, pricing, feature list, and related products. Adaptable for any product catalog or service page.
Preview
Product Image
Image placeholder — use type: image with src and alt props for real products.
yamlCase Pro License
$49/month — Unlimited projects, priority support, custom templates.
Features: Unlimited builds • Custom templates • Priority support • Team collaboration • CI/CD integration • White-label export
Related Products
Starter Plan
Free — 3 projects, community templates
Team Plan
$29/seat/mo — Shared workspace, team templates
Enterprise
Custom — SSO, SLA, dedicated support
YAML Source
view:
name: ProductPage
title: Product Detail
body:
- type: grid
columns: 2
children:
- type: image
src: /images/product.jpg
alt: Product photo
- type: container
children:
- type: heading
text: Product Name
level: 2
- type: text
content: "$49/month"
variant: lead
- type: alert
variant: success
message: In stock
- type: text
content: Feature list...
- type: heading
text: Related Products
level: 3
- type: grid
columns: 3
children:
- type: card
title: Related Item
body: Description
Portfolio / Profile Page
Personal portfolio or user profile with bio, skills, project showcase, and contact section. Use for developer portfolios, team member pages, or user profiles.
Preview
Jane Developer
Full-stack developer specializing in React, TypeScript, and YAML-driven development. Building tools that make the web more accessible.
Skills
Featured Projects
yamlCase Compiler
YAML-to-React compiler with 85 templates and production TypeScript output.
Dashboard Builder
Drag-and-drop dashboard creation tool built entirely with yamlCase.
Template Marketplace
Community-driven template sharing platform with version control.
YAML Source
view:
name: Portfolio
title: Portfolio
body:
- type: flex
direction: column
align: center
children:
- type: heading
text: Your Name
level: 2
- type: text
content: Your bio...
variant: lead
- type: divider
- type: heading
text: Skills
level: 3
- type: grid
columns: 4
children:
- type: stat_card
label: Skill
value: Level
- type: heading
text: Projects
level: 3
- type: grid
columns: 3
children:
- type: card
title: Project Name
body: Description
Build Your Own
Creating Custom Page Templates
Every page template is just a YAML view file. There is no special syntax or registration — define a view, add components, and the compiler generates a complete React page.
Step 1: Start with the view skeleton
view:
name: MyTemplate # Component name (PascalCase recommended)
title: My Page # Page title shown in browser tab
icon: "" # Optional sidebar icon
group: "My Group" # Optional sidebar group
body:
- type: heading
text: Hello World
level: 1
Step 2: Add layout structure
body:
- type: hero
title: Page Title
subtitle: Page description
- type: grid
columns: 3
children:
- type: card
title: Section 1
body: Content here
- type: card
title: Section 2
body: More content
- type: card
title: Section 3
body: Even more
Step 3: Add custom styles
view:
name: StyledPage
styles:
.hero-section:
background: "linear-gradient(135deg, #667eea, #764ba2)"
color: white
padding: 4rem 2rem
".hero-section h1":
font-size: 3rem
body:
- type: container
className: hero-section
children:
- type: heading
text: Styled Hero
level: 1
Step 4: Add interactivity
view:
name: InteractivePage
state:
count: "0"
name: "''"
handlers:
- name: handleIncrement
params: "()"
body: setCount(prev => prev + 1);
body:
- type: text
content: "Count: {count}"
- type: button
text: Increment
on_click: handleIncrement
Template Patterns Cheat Sheet
Two-Column Layout
grid columns: 2 with container children. Use for blog posts, settings pages, product pages.
Card Grid
grid columns: 3-4 with card children. Use for feature lists, product catalogs, team pages.
Hero + Sections
hero at top, then divider-separated content sections. Classic landing page structure.
Stat Row
flex with stat_card children. Use for dashboards, social proof, KPI displays.
Form Layout
card containing input/toggle components with state bindings. Use for settings, login, registration.
Sidebar + Content
grid columns: 2 with narrow sidebar and wide content area. Use for documentation, admin panels.