Headings
pageHeading(title, action)
Page Title
ACTION{{ c.pageHeading("Page Title", { label: "ACTION", href: "#" }) }}
heroHeader(title, action, description)
Hero Title
Create NewOptional description text goes here
{{ c.heroHeader("Hero Title", { label: "Create New", href: "#" }, "Description") }}
sectionHeading(title, id)
Section Heading
{{ c.sectionHeading("Section Heading", "section-id") }}
Forms
fieldText(label, value, optional, link)
John
john@example.com
{{ c.fieldText("First Name", "John") }}
{{ c.fieldText("Email", "john@example.com", true, true) }}
inputText(placeholder, name, value, fullWidth)
{{ c.inputText("Enter your name...", "name", "", true) }}
fieldCheckbox(label, checked, name)
{{ c.fieldCheckbox("Option label", true, "name") }}
fieldGrid(cols, content)
Value 1
Value 2
{{ c.fieldGrid(2, content) }}
Layout
card(content, classes)
This is card content. Cards are generic white bordered containers.
{{ c.card('Content here
', 'extra-classes') }}
settingsSection(id, title, content)
Preferences
{{ c.settingsSection("id", "Title", content) }}
grid(content, columns)
42
Users
128
Courses
1.2K
Completions
{{ c.grid(content, 3) }}
Data Display
statCard(value, label)
1,234
Total Users
89%
Completion Rate
$12.5K
Revenue
{{ c.statCard("1,234", "Total Users") }}
tableHeader + tableRow
| Name | Status | |
|---|---|---|
| John Doe | john@example.com | Active |
| Jane Smith | jane@example.com | Pending |
{{ c.tableHeader(["Col1", "Col2"]) }}
{{ c.tableRow(["data", "data"]) }}
UI Elements
avatar(size, hasBadge, badgeColor)
{{ c.avatar("w-12 h-12", true, "bg-green-500") }}
statusBadge(label, status)
Active
Pending
Inactive
{{ c.statusBadge("Active", "active") }}
registrationStatus(status)
COMPLETED
PENDING
CANCELLED
REFUNDED
{{ c.registrationStatus("completed") }}
badge(count)
Notifications
5
Messages
12
{{ c.badge(5) }}
Cards
contentCard
Another Card
More description here.
{{ c.contentCard(image, title, description, metadata, actions) }}
courseCard
{{ c.courseCard(title, visibility, availability, signUps, completed, href) }}
learningCourseCard
Course Title
In Progress: 45%Course description explaining what the student will learn.
5 Modules
Continue
{{ c.learningCourseCard(title, description, modules, status, progress, href) }}
userCard
John Doe
john@example.com
Acme Corp
Tier: Gold
Points: 500-1000
Last login: 2 days ago
{{ c.userCard(name, email, organization, tier, pointRange, lastLogin, href) }}
revenueCard
{{ c.revenueCard(title, href, updated, revenue, registrants) }}
Course Modules
courseModuleSection + courseModuleItem
Module 1: Introduction
{{ c.courseModuleSection("Title") }}
{{ c.courseModuleItem("Item", "#", "document", completed) }}
{{ c.courseModuleSectionEnd() }}
scheduleEventMilestone
Milestone
Registration Deadline
Dates Oct 1, 2025
Complete your registration before this date.
{{ c.scheduleEventMilestone(title, dates, description, isPast) }}
scheduleEventVideoConference
Video Conference
Kickoff Meeting
Date & Time Oct 15, 2025 at 2:00 PM ET
|
Duration 1 hour
Join us for the program kickoff.
+ MORE INFORMATION{{ c.scheduleEventVideoConference(title, dateTime, duration, description, showMoreInfo, isPast) }}
learningObjective
-
Understanding Basics
Learn the fundamental concepts and terminology. -
Practical Application
Apply concepts to real-world scenarios.
{{ c.learningObjective("Title", "Description") }}