Component Reference

Your complete guide to every Taildown component with live examples.


Jump directly to any component category:

Layout

Card, Grid, Button Group

Interactive

Tabs, Accordion, Carousel

Overlays

Modal, Tooltip

Feedback

Alert, Badge, Progress

Content

Details, Callout, Columns, Definitions, Stats, Divider, Steps, Mark

Data & Comparison

Enhanced Tables, Image Comparison Slider, Mermaid Diagrams, Math Equations, Timeline

Media

Video Embeds


Layout Components

Organize and structure your content beautifully.


Card

Versatile content containers with glassmorphism effects.

Glassmorphism Variants

Subtle Glass

Barely-there translucency with soft shadows.

Example

Light Glass

Gentle frosted appearance with elegant borders.

Example

Standard Glass

Balanced translucency - the default choice.

Example

Heavy Glass

Pronounced frosted blur that makes a statement.

Example

Elevated

Classic elevated card with shadow instead of glass.

Example

Rich Content Example

Feature Showcase Card

Cards support any content: headings, paragraphs, lists, images, icons, and nested components.

Key Features:

Cards work perfectly with all other components!

Primary ActionSecondary

Clickable Cards

Make entire cards clickable by adding an href attribute - modern UX best practice!

Clickable Navigation Card

The entire card is a link! This is the modern approach for navigation cards - no visible link styling, just an intuitive clickable surface.

Try hovering over this card - the whole thing responds!

Interactive Card Link

Click anywhere on this card to navigate. The hover-lift variant provides visual feedback on hover.

Syntax:

:::card {glass hover-lift href="#target"}
Content here
:::

Benefits:

Syntax & Variants

:::card {glass padded}
Your content here
:::

:::card {subtle-glass padded-xl rounded-xl hover-lift}
Card with multiple attributes
:::

:::card {glass padded hover-lift href="#destination"}
Clickable card - entire card is a link
:::

Glass Variants: subtle-glass light-glass glass heavy-glass

Padding: padded-sm padded padded-lg padded-xl

Effects: elevated floating hover-lift rounded rounded-lg rounded-xl

Clickable: Add href="#target" to make entire card a link

Back to top


Grid

Responsive column layouts with automatic equal-height columns.

Column Examples

2 Columns:

Column 1

Equal height columns automatically adjust to match the tallest sibling.

Column 2

This column has more content to demonstrate the equal-height behavior. Notice how both columns maintain the same height regardless of content length. This creates a clean, professional grid layout without manual height adjustments.

3 Columns:

Developer Friendly

Plain English syntax that just makes sense.

Beautiful Design

Zero-config professional aesthetics.

Lightning Fast

Sub-100ms compilation targets.

4 Columns:

Home

Search

Settings

Profile

Nested Grids

Main Content

Nested 1

Nested 2

Sidebar

Grids can be nested infinitely for complex layouts that maintain equal heights throughout.

Syntax & Variants

:::grid {2}
:::card
Column 1
:::

:::card
Column 2
:::
:::

:::grid {3 gap-lg}
Three columns with large gap
:::

Columns: 2 3 4

Gaps: gap-sm gap gap-lg

Back to top


Button Group

Intelligent button layout with centering and mobile stacking.

Alignment Variants

Left Aligned:

StartProgressEnd


Centered (default):

Option AOption BOption C


Right Aligned:

Save DraftPublish

Size Variants

Small Gap:

CompactLayoutHere


Medium Gap (default):

StandardSpacingWorks


Large Gap:

SpaciousLayout

Responsive Behavior

Desktop: Horizontal layout with auto-sizing and proper gaps

Mobile: Automatically stacks vertically with full-width buttons for better touch targets

Try resizing your browser to see it in action!

MobileFriendlyLayout

Syntax & Variants

:::button-group
[Primary](#){button primary large}
[Secondary](#){button secondary large}
:::

:::button-group {right lg}
Right-aligned with large gaps
:::

Alignment: left center right stack

Sizes: sm md lg

Back to top


Interactive Components

Components with built-in JavaScript behaviors - zero configuration required.


Tabs

Tabbed interface using headings as labels.

Live Example

Tabs use headings (h2 or h3) as labels. Everything between headings becomes panel content.

Features:

  • First tab active by default
  • Click or keyboard navigation (arrow keys)
  • Smooth transitions
  • Full ARIA accessibility

Usage Summary

:::tabs
## First Tab
Content

## Second Tab
More content
:::

Key Points:

Back to top


Accordion

Expandable sections using bold text as triggers.

Live Example

How do I create one? Use :::accordion fences and bold text for triggers. Everything between triggers becomes panel content.

What content is supported? Everything! Full markdown, components, icons, images - the entire Taildown syntax works inside accordion panels.

Can I nest components? Absolutely! Here's a card inside an accordion:

Nested Card Example

This card lives inside an accordion panel with full styling support.

Alerts work here too!

How is accessibility handled? Accordions include proper ARIA attributes (aria-expanded, aria-controls) and full keyboard navigation for screen readers.

Complex Content Example

Optimized for speed:

  • Sub-100ms compilation
  • Tree-shaking for minimal JS
  • GPU-accelerated animations
  • Minimal runtime overhead

Design System

Beautiful by default:

Glass

Glassmorphism

Light

Light mode

Dark

Dark mode

Developer Experience

Simple syntax:

:::accordion
**Section Title**
Section content here
:::

Clean, intuitive, and powerful!

Usage Summary

:::accordion
**First Section**
Content (open by default)

**Second Section**
More content

**Third Section**
Even more content
:::

Key Points:

Back to top


Slideshow with navigation, indicators, and 3D card effects.

Feature Showcase

Simple Content Example

Usage Summary

:::carousel
First slide content

---

Second slide content

---

Third slide content
:::

Features:

Back to top


Overlay Components

Create stunning modals and tooltips with zero configuration - just add an attribute.

Modals

Overlay dialogs with backdrop blur, focus management, and accessibility built-in.

Tooltips

Contextual help on hover or click. Perfect for definitions, hints, and extra context.

Zero Config

No JavaScript setup required. Just add modal="..." or tooltip="..."to any element.


Powerful overlay dialogs that work beautifully across all devices.

Quick Start

The simplest modal is just one attribute:

Try Simple Modal

[Click Me](#){button primary modal="Your message here"}

Perfect for:Alerts, confirmations, simple messages

Rich Content Modals

For complex layouts with markdown, components, and interactivity, use ID-referenced modals:

Welcome DialogFeature TourPricing Details

Shared Modals

Define once, trigger from anywhere. Perfect for reusable content:

Trigger ATrigger BTrigger CTrigger D

All four buttons open the same modal

Modal Syntax Reference

Inline Modals

[Button](#){button modal="Simple text"}
[Link](#){modal="Also works on links"}

Best for:Short messages, alerts, confirmations

ID-Referenced Modals

[Open](#){button modal="#my-modal"}

:::modal {id="my-modal"}
# Full Markdown Support
With components, styling, everything!
:::

Best for:Rich content, complex layouts, reusable modals

Accessibility Features

Modals include enterprise-grade accessibility out of the box:

Back to top


Tooltip

Contextual help that appears on hover or click. Perfect for hints, definitions, and extra context.

Quick Start

Add tooltips to any element with one attribute:

Hover over this text or this link to see tooltips in action.

[Hover me](#){tooltip="Helpful information"}

Perfect for:Help text, definitions, extra context, hints

Tooltip Showcase

On Buttons

Need Help?Cancel

On Badges

Status: ActiveBetav2.1.0

On Icons

In Text

The API uses REST? architecture with JSON? payloads.

Rich Content Tooltips

For complex tooltip content, use ID references:

Hover over this badge for a rich tooltip with full markdown support.

Another trigger can reference the same tooltip content.

Multiple Triggers

Share one tooltip across multiple triggers for consistency:

Technical terms: API?, REST?, endpoint?, JSON?

All four terms share the same tooltip definition.

Tooltip Syntax Reference

Inline Tooltips

[Text](#){tooltip="Help text"}
[Button](#){button tooltip="Hint"}
[Badge](#){badge tooltip="Info"}

Best for:Short hints, simple definitions

ID-Referenced Tooltips

[Term 1](#){tooltip="#def"}
[Term 2](#){tooltip="#def"}

:::tooltip {id="def"}
**Definition** with full markdown
:::

Best for:Complex content, shared definitions

Tooltip Features

Professional tooltips with excellent UX:

Best Practices

Do:

Don't:

Back to top


Feedback Components

Display messages, status, and notifications.


Alert

Semantic message boxes with theming and icons.

All Variants

Information: This is an informational alert with proper theming and icon integration.

Success: Your operation completed successfully with no errors!

Warning: Please review this information carefully before proceeding.

Error: An error occurred. Please check your input and try again.

Rich Content Example

Pro Tip

Alerts support full markdown content:

Learn More

Minimal Style

Clean alert without an icon for minimal, focused messaging.

Usage Summary

:::alert {info}
:icon[info]{info} Information message
:::

:::alert {success}
:icon[check-circle]{success} Success message
:::

:::alert {warning}
:icon[alert-triangle]{warning} Warning message
:::

:::alert {error}
:icon[x-circle]{error} Error message
:::

Variants:

info success warning error

Features: Proper theming • Dark mode support • Responsive padding • Smooth animations

Back to top


Badges

Inline labels and status indicators

Color Variants

default primary secondary success warning error info muted

Size Variants

small badges for subtle badgesmedium badges for regular badgeslarge badges for emphasized badges


In Context

Use badges to highlight status and metadata:

Project Status: active

Version v2.1.0

License MIT

Features: new beta deprecated coming soon

With Icons

Combine badges with icons and markdown content for visual context and alternative use:

Pro Tip: Badges support content but don't go overboard. trending hot

Usage Summary

# Inline badges
Project Status: :badge[active]{success}
Version: :badge[v2.1.0]{info}
License: :badge[MIT]{primary}

Features: :badge[new]{warning} :badge[beta]{info} :badge[deprecated]{error}

# Component syntax
Combine badges with icons for visual context:

:::badge {primary}
:icon[star]{warning} featured
:::
:::badge {success}
:icon[trending-up]{success} trending
:::
:::badge {error}
:icon[flame]{error} hot
:::

Colors: default primary secondary success warning error info muted

Sizes: sm md (default) lg

Back to top


Content Components

Progressive disclosure and semantic alert boxes for better content organization.


Details/Summary

Native HTML5 disclosure widget with beautiful Taildown styling - zero JavaScript required!

What is Details/Summary?

The <details> element is a native HTML5 component for progressive disclosure - perfect for FAQs, collapsible content, and expandable sections. Taildown adds beautiful glassmorphism styling while maintaining full accessibility.

Key Benefits:

Live Examples

What is Taildown?

Taildown is a markup language for creating beautiful UIs with plain English styling. It compiles to pure HTML, CSS, and minimal vanilla JavaScript.

Key Features:

Learn More

How do I install it?

Installation is simple with pnpm, npm, or yarn:

pnpm install @taildown/cli

Then create a .td file and compile it:

taildown compile myfile.td

What components are available?

Taildown includes a comprehensive component library:

Glass Variants

Subtle Glass

Minimal transparency with soft shadows for a clean, professional look.

Standard Glass

Balanced glassmorphism - the default choice for most use cases.

Heavy Glass

Pronounced frosted blur that makes a bold statement.

Open by Default

Add {open} to start expanded:

This details is open by default

Perfect for showing important content that should be visible initially while still being collapsible.

Users can still click to collapse it if they want to focus on other content.

Syntax & Variants

:::details {glass}
**Summary Text** {bold}

Details content here - supports full markdown, components, everything!
:::

:::details {elevated open}
**Open by Default**

Content visible initially
:::

Glass Variants: subtle-glass glass light-glass heavy-glass

Other Variants: elevated bordered

Attributes: open - Start expanded

Back to top


Callout/Admonition

Semantic alert boxes with color-coded types for notes, tips, warnings, and critical alerts.

What are Callouts?

Callouts (also known as admonitions) are highlighted content boxes that draw attention to important information. They're essential for documentation, technical writing, and any content that needs clear visual hierarchy.

Why Use Callouts?

All Callout Types

Note: This is a note callout for general information and context. Use for neutral, informational content that provides additional detail.

Info: Similar to note but with a lighter blue color scheme. Perfect for helpful information and guidance.

Pro Tip: This is a tip callout for helpful advice and best practices. Use green to convey positive, helpful guidance.

Success: Use for positive messages, confirmations, and successful outcomes. Emphasizes that something worked correctly.

Warning: This is a warning callout for caution messages. The amber/orange color draws attention without being alarming.

Danger: For critical warnings about destructive or irreversible actions. The red border immediately signals importance.

Error: For error messages and problems that need attention. Use when something went wrong or failed.

Rich Content Callouts

Callouts support full markdown and nested components:

Advanced Usage Tip

You can nest any Taildown content inside callouts:

Example workflow:

  1. Create your .td file
  2. Add components and styling
  3. Compile with taildown compile
  4. Deploy the HTML

Fast

Beautiful

View Full Tutorial

Callout without Icons

Icons are optional - callouts work great with just text:

Clean and Minimal: Callouts don't require icons. The colored left border and background tint provide clear visual distinction.

Operation Successful: Your changes have been saved and deployed to production.

Glass Effect Callouts

Add {glass} for glassmorphism styling:

Important Notice: Combining callout types with glass effects creates a modern, professional appearance while maintaining readability.

Syntax & Variants

:::callout {note}
:icon[info]{primary} **Note:** Additional information here
:::

:::callout {tip glass}
:icon[lightbulb]{success} **Pro Tip:** Helpful advice with glass effect
:::

:::callout {danger elevated}
:icon[alert-octagon]{error} **Danger:** Critical warning with shadow
:::

Types: note info tip success warning danger error

Visual Variants: glass elevated bordered

Sizes: sm md lg

Back to top


Multi-Column Layout

CSS multi-column layout for magazine-style text flow - content reflows naturally.

What are Columns?

The :::columns component uses CSS multi-column layout to create magazine-style text flow. Content automatically reflows between columns, creating professional, space-efficient layouts perfect for long-form content.

Key Benefits:

Live Example - 2 Columns

Magazine-style text flow

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Automatic reflow

The text naturally flows from one column to the next, creating a professional magazine-style layout. Paragraphs, lists, and images all work seamlessly within the column structure.

This is perfect for long-form content, documentation, articles, and any content that benefits from shorter line lengths for improved readability.

3 Column Example

First Column - Content automatically distributes across three columns with large gaps between them for optimal readability and visual separation.

Second Column - Notice how the text flows naturally and the layout remains balanced. CSS columns automatically handle the distribution.

Third Column- Perfect for feature lists, specifications, or any content that benefits from compact, organized presentation.

Syntax & Variants

:::columns {2}
Content flows between 2 columns
:::

:::columns {3 gap-lg}
Three columns with large gap
:::

:::columns {4 divider}
Four columns with divider lines
:::

Column Counts: 2 3 4 auto

Gap Sizes: gap-sm gap (default) gap-lg gap-xl

Options: divider (column rule line) balanced (equal column heights)

Back to top


Definition List

Semantic <dl> element for term-definition pairs - perfect for glossaries and API docs.

What are Definition Lists?

Definition lists use semantic HTML (<dl>, <dt>, <dd>) to pair terms with their definitions. They're perfect for glossaries, API parameters, metadata, and any key-value documentation.

Key Benefits:

Vertical Layout (Default)

API Key : A unique identifier for authentication with the service. Keep this secure and never commit it to version control.

Base URL {term} : https://api.example.com/v1

Rate Limit : 1000 requests per hour per API key. Contact support for higher limits.

Authentication : Bearer token authentication via the Authorization header. Include your API key in all requests.

Horizontal Layout

Name: John Doe Email: john@example.com Role: Lead Developer Location: San Francisco, CA Status: Active

Compact Layout

Version: v2.1.0 License: MIT Author: Taildown Team Updated: 2025-10-11

Syntax & Variants

:::definitions {glass}
**Term** {term}
: Definition text here

**Another Term** {term}
: Another definition
:::

:::definitions {horizontal}
**Key:** Value
**Another:** Value
:::

Layouts: vertical (default) horizontal compact

Visual Variants: glass subtle-glass elevated bordered

Sizes: sm md lg

Back to top


Stats/Metrics Display

Large, prominent statistics for landing pages, dashboards, and social proof.

What are Stats?

The stats component displays large, eye-catching numbers with labels and icons - perfect for showcasing key metrics, social proof, and important statistics on landing pages.

Key Benefits:

Live Example - 3 Stats

10,000+

Active Users

99.9%

Uptime SLA

< 50ms

Response Time

4 Stats Grid

1M+

Downloads

150

Contributors

5.0★

Rating

24/7

Support

Syntax & Variants

:::stats {3}
### 10,000+ {stat}
:icon[users]{primary huge}
Active Users

### 99.9% {stat}
:icon[check-circle]{success huge}
Uptime

### < 50ms {stat}
:icon[zap]{warning huge}
Response Time
:::

Column Counts: 2 3 (default) 4

Visual Variants: glass elevated bordered compact

Usage: Use H3 headings with {stat} marker, add icon above, label text below

Back to top


Divider/Separator

Enhanced horizontal rules with text, icons, and decorative styles.

What are Dividers?

Dividers create visual section breaks with more expressiveness than plain markdown ---. Add text, icons, gradients, and decorative styles to match your brand.

Key Benefits:

Basic Divider

Simple divider

Text Divider

Section Break

Icon Divider

Gradient Divider

Decorative Styles

Dotted:

Dashed:

Thick:

Double Line:

Colored Dividers

Important Section

Syntax & Variants

:::divider
Basic divider
:::

:::divider {text}
Section Break
:::

:::divider {icon}
:icon[star]{warning}
:::

:::divider {gradient primary}
Gradient with color
:::

:::divider {dots muted}
Decorative style
:::

Styles: solid text icon gradient dots dashed double wavy thick

Colors: primary accent muted success warning error

Back to top


Enhanced Blockquote

Beautiful blockquotes with attribution, citations, and pull-quote styling.

What are Enhanced Blockquotes?

Enhanced blockquotes go beyond basic markdown > syntax with professional styling, attribution support, and special variants for pull quotes and testimonials.

Key Benefits:

Standard Blockquote

This is a standard blockquote with regular styling. It has a colored left border, subtle background tint, and decorative quote marks.

Multiple paragraphs in a blockquote work seamlessly.

Each paragraph flows naturally with proper spacing and formatting.

Pull Quote Variant

The best design tool I've used. Taildown makes beautiful UIs effortless.

Testimonial Variant

Taildown transformed our documentation. The glassmorphism is stunning and the plain English syntax is so intuitive. Our entire team adopted it in days.

— Sarah Chen, Lead Designer Company Name

Glass Effect Blockquote

This blockquote has a beautiful glassmorphism effect with backdrop blur, creating a modern, professional appearance that stands out.

Bordered Variant

This blockquote features a heavier left border (6px) for extra emphasis without background styling.

Color Variants

Information blockquote with blue accent

Success or positive quote

Warning or caution quote

Error or critical quote

Syntax & Variants

> Standard blockquote
> with multiple lines

> Pull quote for emphasis
{pull-quote primary}

> Testimonial with attribution
>
> — Author Name
> Title/Company
{testimonial glass}

> Glass effect blockquote
{glass}

> Bordered with color
{bordered success}

Variants: pull-quote testimonial bordered glass subtle-glass

Colors: primary success warning error accent

Back to top


Step Indicator

Visual progress indicator for multi-step processes, tutorials, and onboarding flows.

What are Step Indicators?

Step indicators show progress through multi-step processes with visual markers, numbers, and connecting lines. Perfect for installation guides, tutorials, and documenting workflows.

Key Benefits:

Vertical Steps (Default)

1

Install Dependencies

Run pnpm install to install all required packages.

2

Configure Environment

Create a .env file with your configuration settings:

API_KEY=your-api-key-here
BASE_URL=https://api.example.com
3

Build Project

Run pnpm build to compile the project.

4

Deploy

Push to production using your deployment pipeline.

Horizontal Layout

1

Setup

Initial setup and configuration

2

Build

Compile and package

3

Deploy

Push to production

Syntax & Variants

:::steps {numbered connected}
### Install Dependencies {step completed}
First step is done

### Configure {step current}
Currently working on this

### Deploy {step}
Future step
:::

:::steps {horizontal glass}
Simple horizontal steps
:::

Layouts: vertical (default) horizontal compact

Styles: numbered icons connected (connecting lines)

States: {step} {step current} {step completed}

Visual Variants: glass elevated bordered

Back to top


Mark/Highlight Text

Inline text highlighting with semantic colors - like a highlighter pen for your content.

What is Mark/Highlight?

The ==highlighted text== syntax creates inline text highlighting with semantic color variants. Better than just bold or italic, it provides visual emphasis with meaning.

Key Benefits:

All Color Variants

This is highlighted text with default yellow background.

Important! uses orange/red highlighting for warnings.

Success uses green highlighting for positive emphasis.

Critical uses red highlighting for errors or critical content.

Note uses blue highlighting for informational content.

Featured uses the primary brand color.

Muted uses gray for subtle emphasis.

In Context

Example Documentation:

The API uses REST architecture with JSON payloads.

Recommended: Use HTTPS for all requests

Warning: Rate limits apply

Deprecated: Legacy endpoint removed

Syntax & Variants

==highlighted text== with default yellow

==Important!=={warning} orange/red

==Success=={success} green

==Critical=={error} red

==Note=={info} blue

==Custom=={primary} brand color

==Subtle=={muted} gray

Variants: warning success error info primary muted (default: yellow)

Usage: Wrap text with == on both sides, optionally add {variant} after

Back to top


Media Components

Embed videos and rich media with responsive aspect ratios.


Video Embed

Responsive video embeds for YouTube, Vimeo, and self-hosted videos with aspect ratio preservation.

What are Video Embeds?

The video component creates responsive video embeds with automatic aspect ratio preservation, lazy loading, and platform detection. Works with YouTube, Vimeo, or self-hosted videos.

Key Benefits:

YouTube Embed

Vimeo Embed

Self-Hosted Video

Different Aspect Ratios

Widescreen (16:9 default):

https://youtube.com/watch?v=EXAMPLE_ID

Standard (4:3):

https://youtube.com/watch?v=EXAMPLE_ID

Ultrawide (21:9):

https://youtube.com/watch?v=EXAMPLE_ID

Square (1:1):

https://youtube.com/watch?v=EXAMPLE_ID

Syntax & Variants

:::video {youtube}
https://youtube.com/watch?v=VIDEO_ID
:::

:::video {vimeo glass}
https://vimeo.com/VIDEO_ID
:::

:::video {16:9}
![Video](video.mp4)
:::

:::video {glass autoplay muted loop}
![Background](bg-video.mp4)
:::

Platforms: youtube vimeo (auto-detected from URL)

Aspect Ratios: 16:9 (default) 4:3 21:9 1:1

Visual Variants: glass subtle-glass

Attributes: autoplay muted loop controls

Back to top


Data & Comparison Components

Professional data presentation and visual comparison tools.


Enhanced Table

GFM tables supercharged with sorting, zebra striping, glass effects, and sticky headers.

What are Enhanced Tables?

Enhanced tables extend GitHub Flavored Markdown tables with professional features like client-side sorting, alternating row colors, glassmorphism effects, and sticky headers. Perfect for data presentation, documentation, and dashboards.

Key Benefits:

Live Example - Sortable Table

Click any header to sort the data:

Employee Department Salary Performance Status
Alice Chen Engineering $95,000 Excellent Active
Bob Smith Design $82,000 Good Active
Charlie Davis Product $105,000 Excellent Active
Diana Wilson Marketing $78,000 Very Good Active
Eve Martinez Engineering $98,000 Excellent Active
Frank Johnson Sales $88,000 Good Active

Try it: Click on "Salary" to sort by amount, or "Department" to alphabetize!

Glass Effect Table

Metric Q1 2024 Q2 2024 Q3 2024 Growth
Revenue $1.2M $1.5M $1.8M +50%
Users 10,500 12,300 14,800 +41%
Conversion 3.2% 3.8% 4.1% +28%
Churn 2.1% 1.8% 1.5% -29%
{glass sticky-header}
:::

Compact Data Table

Setting Value Description
Version v2.1.0 Current release
License MIT Open source
Build 1,234 Latest CI run
Status Passing All tests green

All Variants

Styling Variants:

  • sortable - Interactive column sorting
  • zebra / striped - Alternating row colors
  • bordered - Full cell borders
  • glass - Glassmorphism effect
  • sticky-header - Header stays on scroll
  • compact - Tighter spacing
  • hoverable- Row hover effects

Size Modifiers:

  • sm - Small (0.5rem/0.75rem padding)
  • md - Medium (default)
  • lg - Large (1rem/1.25rem padding)

Combinations:

{sortable zebra hoverable}
{glass sticky-header}
{compact bordered sm}

Syntax & Usage

# Basic sortable table
| Name | Value | Status |
|------|-------|--------|
| Item A | 100 | Active |
| Item B | 200 | Pending |
{sortable}

# Full-featured dashboard table
| Metric | Q1 | Q2 | Q3 |
|--------|-----|-----|-----|
| Revenue | $1.2M | $1.5M | $1.8M |
| Users | 10.5K | 12.3K | 14.8K |
{sortable zebra glass sticky-header hoverable}

# Compact data list
| Key | Value |
|-----|-------|
| API | v2.0 |
| Status | Live |
{compact bordered sm}

Attributes: Place {variants} after the table (last row or separate line)

Features:

Back to top


Image Comparison Slider

Interactive before/after image comparisons with draggable slider - perfect for showcasing transformations.

What is Image Comparison?

The image comparison slider creates interactive before/after comparisons with a draggable slider. Perfect for design showcases, photo editing demos, renovation projects, or any visual transformation.

Key Benefits:

Basic Horizontal Example

Before: Office workspace transformation
After: Office workspace transformation

Try it: Click and drag the slider, or use arrow keys!

With Labels

Before: Modern office redesign
Before
After: Modern office redesign
After

Vertical Comparison

Before: Design evolution
Before
After: Design evolution
After

Size Variants

Small (280px):

Perfect for thumbnails or compact comparisons.

Before: Small comparison
Before
After: Small comparison
After

Large (580px):

Great for detailed visual comparisons.

Before: Large comparison
Before
After: Large comparison
After

Extra Large Showcase

Before: Portfolio showcase
Before
After: Portfolio showcase
After

All Variants

Orientation:

  • horizontal - Left/right comparison (default)
  • vertical - Top/bottom comparison

Visual:

  • labels - Show "Before" and "After" overlays
  • glass - Glassmorphism on handle and labels
  • shadow- Enhanced shadow on handle

Sizes:

  • sm - 280px (36px handle)
  • md - 450px (48px handle, default)
  • lg - 580px (48px handle)
  • xl - 700px (56px handle)
  • full - Full height (400px min)

All sizes respect viewport (no awkward scrolling!)

Syntax & Usage

# Basic horizontal
:::compare-images {horizontal}
before: https://example.com/before.jpg
after: https://example.com/after.jpg
alt: Workspace transformation
:::

# Vertical with labels
:::compare-images {vertical labels}
before: /images/design-v1.png
after: /images/design-v2.png
beforeAlt: Original design
afterAlt: New design
:::

# Small with glass effect
:::compare-images {sm glass labels}
before: /photos/original.jpg
after: /photos/edited.jpg
alt: Photo editing showcase
:::

# Extra large hero
:::compare-images {xl labels shadow}
before: /portfolio/mockup-before.png
after: /portfolio/mockup-after.png
alt: Website redesign
:::

Required Attributes:

Optional Attributes:

Interaction Features

Mouse/Track Interaction:

Touch Devices:

Keyboard Navigation:

Accessibility Features

Enterprise-Grade Accessibility:

Back to top


Mermaid Diagrams

Client-side rendered diagrams with zero-overhead tree-shaking.

Tree-Shaken: 0KB overhead when no diagrams present. ~2.7MB inline UMD bundle only when diagrams detected.

What are Mermaid Diagrams?

Mermaid enables you to create diagrams and visualizations using text-based syntax:

graph LR
  A[Start] --> B{Decision}
  B -->|Yes| C[Action 1]
  B -->|No| D[Action 2]
  C --> E[End]
  D --> E

Supported Diagram Types

Flow & Process

  • Flowcharts
  • Sequence Diagrams
  • State Machines
  • Git Graphs

Data & Structure

  • Class Diagrams
  • ER Diagrams
  • Pie Charts
  • Gantt Charts

User & Journey

  • User Journey Maps
  • Timeline Diagrams

Basic Flowchart

Simple decision tree:

graph TD
  A[Christmas] -->|Get money| B(Go shopping)
  B --> C{Let me think}
  C -->|One| D[Laptop]
  C -->|Two| E[iPhone]
  C -->|Three| F[Car]

Sequence Diagram

UML sequence diagram for interactions:

sequenceDiagram
  participant Alice
  participant Bob
  Alice->>John: Hello John, how are you?
  loop Healthcheck
    John->>John: Fight against hypochondria
  end
  Note right of John: Rational thoughts!
  John-->>Alice: Great!
  John->>Bob: How about you?
  Bob-->>John: Jolly good!

Class Diagram

Object-oriented structure:

classDiagram
  Animal <|-- Duck
  Animal <|-- Fish
  Animal <|-- Zebra
  Animal : +int age
  Animal : +String gender
  Animal: +isMammal()
  Animal: +mate()
  class Duck{
    +String beakColor
    +swim()
    +quack()
  }
  class Fish{
    -int sizeInFeet
    -canEat()
  }
  class Zebra{
    +bool is_wild
    +run()
  }

State Diagram

State machine visualization:

stateDiagram-v2
  [*] --> Still
  Still --> [*]
  Still --> Moving
  Moving --> Still
  Moving --> Crash
  Crash --> [*]

Gantt Chart

Project timeline:

gantt
  title Project Development Timeline
  dateFormat YYYY-MM-DD
  section Design Phase
  Research & Planning    :a1, 2024-01-01, 30d
  UI/UX Design          :a2, after a1, 20d
  Design Review         :milestone, after a2, 0d
  section Development
  Backend Development    :b1, 2024-02-15, 45d
  Frontend Development   :b2, after b1, 30d
  Integration           :b3, after b2, 15d
  section Testing
  QA Testing            :c1, after b3, 20d
  User Acceptance       :c2, after c1, 10d
  Launch                :milestone, after c2, 0d

Pie Chart

Data visualization:

pie title Browser Usage
  "Chrome" : 65
  "Firefox" : 15
  "Safari" : 12
  "Edge" : 5
  "Other" : 3

Git Graph

Branch visualization:

gitGraph
  commit
  commit
  branch develop
  checkout develop
  commit
  commit
  checkout main
  merge develop
  commit
  commit

ER Diagram

Entity relationships:

erDiagram
  CUSTOMER ||--o{ ORDER : places
  CUSTOMER {
    string name
    string custNumber
    string sector
  }
  ORDER ||--|{ LINE-ITEM : contains
  ORDER {
    int orderNumber
    string deliveryAddress
  }
  LINE-ITEM {
    string productCode
    int quantity
    float pricePerUnit
  }

User Journey

Journey map:

journey
  title My working day
  section Go to work
    Make tea: 5: Me
    Go upstairs: 3: Me
    Do work: 1: Me, Cat
  section Go home
    Go downstairs: 5: Me
    Sit down: 5: Me

Styling Variants

Glass Effect:

graph LR
  A --> B
  B --> C
  C --> A

Elevated:

graph TD
  Start --> Stop

Size Modifiers

Control diagram container size:

```mermaid {sm}        # Small (max-width: 640px)
```mermaid {md}        # Medium (768px, default)
```mermaid {lg}        # Large (1024px)
```mermaid {xl}        # Extra Large (1280px)

Performance & Features

Performance:

  • Tree-shaken (0KB when unused)
  • ~2.7MB inline when used
  • Client-side rendering
  • Theme-aware (auto light/dark)

Features:

  • 9 diagram types
  • Standard Mermaid syntax
  • SVG output (scalable)
  • Professional styling

Accessibility

Enterprise-Grade Accessibility:

Back to top


Math Equations

Compile-time LaTeX to MathML conversion with zero runtime JavaScript.

Zero Overhead: MathML is generated at compile time. No JavaScript libraries loaded in browser!

What are Math Equations?

Write beautiful mathematical equations using standard LaTeX syntax. Rendered as native MathML for perfect rendering in modern browsers:

Inline Math: The quadratic formula x=b±b24ac2a is fundamental in algebra.

Display Math (Centered):

E=mc2

Basic Syntax

Inline Math

Use single $ delimiters for inline equations:

Einstein's $E = mc^2$ changed physics.

Result: Einstein's E=mc2changed physics.

Display Math

Use double $$ for centered display equations:

$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$

Result:

ex2dx=π

Common Examples

Greek Letters & Symbols

Greek letters: α, β, γ, Δ, Σ, Ω

Special symbols: , , , , , ,

Subscripts & Superscripts

Simple: x1, x2, x12

Complex: xi,jn+1, eiπ

Fractions & Roots

Fraction: numeratordenominator

Roots: x, x3, xn

Summations & Products

Sum of natural numbers:

i=1ni=n(n+1)2

Product notation:

i=1ni=n!

Advanced Examples

Calculus

Definition of derivative:

f(x)=limh0f(x+h)f(x)h

Fundamental theorem:

abf(x)dx=F(b)F(a)

Linear Algebra

Identity matrix:

I=[100 010 001]

Complex Equations

Euler's Identity

Often called the most beautiful equation in mathematics:

eiπ+1=0

Normal Distribution

The probability density function:

f(x)=1σ2πe12(xμσ)2

Maxwell's Equations

The foundations of electromagnetism:

𝐄=ρϵ0 𝐁=0 ×𝐄=𝐁t ×𝐁=μ0𝐉+μ0ϵ0𝐄t

Supported LaTeX Features

Basic Operations

  • +, -, \times, \div
  • \pm, \mp
  • =, \neq
  • <, >, \leq, \geq

Functions

  • \frac{a}{b} - Fractions
  • \sqrt{x} - Square root
  • \sqrt[n]{x} - Nth root
  • x^2, x_i- Exponents/subscripts

Advanced

  • \sum, \prod, \int
  • \lim, \log, \sin, \cos
  • \begin{bmatrix} - Matrices
  • \begin{aligned}- Alignment

Features & Performance

Performance:

  • Zero runtime JavaScript
  • Compile-time conversion
  • Small MathML output
  • No external libraries

Features:

  • Full LaTeX syntax
  • Professional math fonts
  • Theme-aware colors
  • Responsive scaling

Browser Support

Modern Browser Support:

Accessibility:MathML provides semantic meaning for screen readers, making equations accessible to all users.

Best Practices

Tips for Beautiful Math:

  1. Use display math ($$) for important equations
  2. Use inline math ($) for simple formulas in text
  3. Break complex equations into multiple lines
  4. Use \begin{aligned} for equation systems
  5. Add spacing with \, \: \; \quadwhere needed

Back to top


Timeline

Chronological visualization of events and milestones with state management.

Perfect For: Project roadmaps, company history, process workflows, and event chronologies!

What is a Timeline?

Display events in chronological order with visual state indicators and connecting lines. H2 headings automatically become milestones:

Example Started

This milestone is marked as completed with a checkmark.

Currently Here

This milestone is marked as current with a pulsing dot.

Coming Soon

This milestone has no state (pending by default).

Basic Syntax

Structure

:::timeline
## Milestone Title {state}

Content for this milestone goes here.

- List items
- More details

## Next Milestone {state}

More content...
:::

H2 headingsbecome milestones automatically.

States

Add state markers to milestones:

  • {completed} - Green checkmark ✓
  • {current} - Pulsing dot ●
  • No marker - Pending ○
## Done {completed}
## Active {current}
## Todo

Timeline Variants

Default (Vertical)

Left-aligned milestones with connecting line

:::timeline
## Milestone 1
:::

Centered

Alternating left/right alignment

:::timeline {centered}
## Milestone 1
:::

Compact

Smaller markers, tighter spacing

:::timeline {compact}
## Milestone 1
:::

Styling Variants

Glass Effect

Glassmorphism on content

:::timeline {glass}
## Milestone
:::

Elevated

Shadow elevation

:::timeline {elevated}
## Milestone
:::

Bordered

Primary color border

:::timeline {bordered}
## Milestone
:::

Project Roadmap Example

A typical project timeline with phases and current status:

Phase 1: Research & Planning

Duration: 4 weeks | Status: ✓ Complete

Initial planning and requirements gathering phase.

Key Deliverables:

  • Requirements document
  • User personas
  • Technical architecture
  • Project timeline

"Understanding the problem is half the solution"

Phase 2: Design & Prototyping

Duration: 6 weeks | Status: ✓ Complete

Created comprehensive designs and interactive prototypes.

Achievements:

  • Wireframes for all 20+ screens
  • Interactive Figma prototype
  • Design system components
  • Accessibility guidelines (WCAG 2.1 AA)

Team: 3 designers, 1 UX researcher

Phase 3: Development

Duration: 12 weeks | Status: 🔄 In Progress (Week 7)

Building core features and functionality.

Current Sprint Focus:

  • Backend API development
  • Database schema design
  • Authentication system
  • User management
  • Frontend components
  • Integration tests

Tech Stack:

  • Next.js 15 + TypeScript
  • PostgreSQL + Prisma
  • Tailwind CSS
  • Vercel deployment

Progress: 60% complete

Phase 4: Testing & QA

Duration: 4 weeks | Status: ⏳ Upcoming

Comprehensive testing and quality assurance phase.

Testing Plan:

  • Unit tests (target: 80% coverage)
  • Integration tests
  • End-to-end tests
  • Performance testing
  • Security audit
  • User acceptance testing

Phase 5: Launch

Duration: 2 weeks | Status: ⏳ Planned

Final deployment and go-live.

Launch Checklist:

  • Production deployment
  • DNS configuration
  • SSL certificates
  • Monitoring setup
  • Analytics integration
  • Marketing campaign

Company History Timeline

Centered layout for alternating presentation:

2020 - Foundation

Company founded with initial seed funding of $1M.

Founders: Alex Kim, Sarah Chen, Michael Rodriguez

Mission: Transform how teams collaborate on complex projects.

2021 - Product Launch

Launched MVP and acquired first 100 customers.

Metrics:

  • 100 paying customers
  • $500K ARR
  • 4.8/5 customer satisfaction
  • Team grew to 15 people

2022 - Series A

Closed $10M Series A led by Accel Partners.

Achievements:

  • Expanded to 1,000 customers
  • $5M ARR
  • Opened European office (London)
  • Team grew to 45 people
  • Launched mobile apps

2023 - Expansion

Expanding into EMEA and APAC markets.

Current Status:

  • 5,000+ customers worldwide
  • $25M ARR run rate
  • 3 offices (SF, London, Singapore)
  • 120 employees
  • Launched enterprise tier

2024 - IPO Planning

Planning initial public offering.

Targets:

  • 20,000 customers
  • $100M ARR
  • Profitable unit economics
  • SOC 2 Type II certified

Daily Schedule Example

Compact timeline for dense information:

9:00 AM

Team Standup Meeting

Daily sync - 15 minutes

10:30 AM

Client Presentation

Q4 roadmap review with Acme Corp

12:00 PM

Lunch Break

Team lunch at the new cafe

2:00 PM

Code Review Session

Review PRs from morning work

3:30 PM

1-on-1 with Manager

Quarterly goal check-in

4:00 PM

Sprint Planning

Plan next week's sprint

Process Workflow Timeline

Timeline for documenting multi-stage processes:

Stage 1: Awareness

Goal: Build brand recognition and attract potential customers.

Tactics:

  • Content marketing (blog, videos)
  • Social media campaigns
  • SEO optimization
  • Conference presence

KPIs:

  • Website traffic: 50K monthly visitors
  • Social followers: 10K+
  • Brand mentions: 500+/month

Stage 2: Interest

Goal: Convert awareness into qualified leads.

Tactics:

  • Lead magnets (ebooks, webinars)
  • Email marketing campaigns
  • Retargeting ads
  • Free tools and calculators

KPIs:

  • Email list growth: 1,000/month
  • Lead quality score: 7+/10
  • Engagement rate: 25%+

Stage 3: Consideration

Goal: Nurture leads and demonstrate value.

Tactics:

  • Product demos and trials
  • Case studies and testimonials
  • Comparison guides
  • Free consultations

KPIs:

  • Demo requests: 200/month
  • Trial signups: 150/month
  • Trial-to-paid: 30%

Stage 4: Conversion

Goal: Close deals and onboard customers.

Tactics:

  • Sales calls and negotiations
  • Custom proposals
  • Onboarding support
  • Quick wins demonstration

KPIs:

  • Closed deals: 45/month
  • Average deal size: $10K
  • Sales cycle: 30 days

Stage 5: Retention & Advocacy

Goal: Keep customers happy and turn them into advocates.

Tactics:

  • Customer success programs
  • Regular check-ins
  • Feature updates
  • Referral incentives

KPIs:

  • Churn rate: <5%/year
  • NPS score: 50+
  • Referrals: 20%

Features & Best Practices

Visual Features:

  • State markers (completed, current, pending)
  • Connecting gradient line
  • Animated pulsing on current
  • Responsive design

Best Practices:

  • Use H2 for milestone titles
  • Keep titles concise and clear
  • Group related content
  • Combine glass + elevated for impact

Use Cases:

  • Project roadmaps
  • Company milestones
  • Event schedules
  • Process workflows

Accessibility:

  • Semantic H3 headings
  • ARIA labels on icons
  • High contrast markers
  • Screen reader friendly

Back to top


Navigation Components

Components for site navigation and wayfinding.


Modern navigation bar with glassmorphism and responsive behavior.

Live Example: The navbar at the top of this page is a working Taildown navbar!

Basic Structure

The navbar uses a heading for branding and paragraph links for navigation:

:::navbar
# Brand Name

[Home](/) [About](/about) [Docs](/docs) [Contact](/contact)
:::

Features

Desktop Experience

  • Glassmorphic translucent background
  • Horizontal flex layout
  • Hover effects on links
  • Active link highlighting
  • Smooth scroll transparency

Mobile Experience

  • Responsive breakpoints
  • Wrapped navigation
  • Touch-friendly targets
  • Full-width layout

Theming & Behavior

Automatic Theming:

Scroll Behavior:

Usage Summary

:::navbar
# Site Name

[Link 1](#) [Link 2](#) [Link 3](#)
:::

Best Practices:

Variants: glass (default) solid minimal floating

Back to top


Component Combinations

Powerful layouts using multiple components together.


Feature Grid Showcase

Combine grids, cards, and icons for stunning feature sections:

Lightning Fast

Sub-100ms compilation targets

Beautiful Design

Zero-config glassmorphism

Simple Syntax

Plain English styling

Rich Components

Interactive with auto JS

Full Theming

Dark mode everywhere

Accessible

ARIA and keyboard nav


Documentation Section

Combine cards, tabs, and alerts for rich documentation:

Quick Reference

New to Taildown? Start here for a quick introduction!

Quick Steps:

  1. Install: npm install @taildown/cli
  2. Create a .td file
  3. Compile: taildown compile file.td
  4. Open the generated HTML

Full Tutorial


Call to Action Section

Cards, buttons, and icons create compelling CTAs:

Ready to build something amazing?

Get started with Taildown in 5 minutes. No configuration, no complexity - just beautiful results.


FAQ Accordion

Accordion inside a card for elegant FAQs:

Frequently Asked Questions

Taildown is in active development with strong stability focus. The core syntax is stable and backwards compatibility is a priority. Many features are production-ready while others are being refined.

Does it work with existing Markdown?

Yes! Taildown is a superset of Markdown. Every valid Markdown document is also valid Taildown. You can gradually add Taildown features to existing content.

What about bundle size?

Taildown uses tree-shaking to include only JavaScript for components you actually use. Documents with no interactive components generate zero JS. Full component usage is typically 2-5KB minified.

Can I customize the styling?

Absolutely! The generated CSS can be extended or overridden. You can use custom CSS classes alongside Taildown's plain English shorthands.

How does it compare to MDX?

Taildown focuses on zero-config simplicity with plain English syntax, while MDX focuses on JSX integration. Taildown is markup-first, MDX is component-first. Choose based on your needs!

Back to top


Complete Component List

Every component at a glance:

Layout Components

  • Card - Content containers with glass effects
  • Grid - Equal-height column layouts
  • Button Group- Intelligent button layout

Interactive Components

  • Tabs - Tabbed interfaces with headings
  • Accordion - Expandable sections with bold triggers
  • Carousel- Slideshows with 3D effects

Overlay Components

  • Modal - Overlay dialogs with blur
  • Tooltip- Contextual help text

Feedback Components

  • Alert - Semantic message boxes
  • Badge - Inline status indicators
  • Progress- Loading indicators

Content Components

  • Details - Progressive disclosure (HTML5)
  • Callout - Semantic alert boxes
  • Columns - Multi-column layouts
  • Definitions - Term-definition pairs
  • Stats - Prominent metrics display
  • Divider - Enhanced separators
  • Steps - Progress indicators
  • Mark- Text highlighting

Data & Visualization

  • Enhanced Table - Sortable, zebra, glass effects
  • Image Comparison - Interactive before/after slider
  • Mermaid Diagrams - Flowcharts, sequence, Gantt, and more
  • Math Equations- LaTeX to MathML conversion

Media Components

  • Video- Responsive video embeds

Navigation Components


Next Steps

You've mastered every component!

Now start building your own beautiful documents.


Back to top