M
Marai.UI
v1.0.0-alpha.7
Experiment with Marai.UI components live. Write Razor markup below and click Preview to render it instantly.

How to Use

Getting Started

Write any Marai.UI component markup in the editor below:

  1. Write Razor markup using components like <MButton>, <MBadge>, <MCard>
  2. Use Variant="Variant.Primary" and Size="Size.Default" for semantic styling
  3. Click Preview to render your code
  4. Use the Quick Examples below to load pre-built snippets

Note: Only markup is supported. C# code blocks and event handlers are not executed.

Live Preview

Preview mode: light
Preview

No preview yet

Write some markup below and click Preview

Code Editor

Quick Examples

Click any example to load it into the editor.

Button Variants

All semantic variants: Primary, Outline, Destructive, Ghost

Status Badges

Merchant status: Active, Pending, Suspended, Review

Settlement Card

Production card with header, content, and action footer

Button Sizes

Xs through Xl: all available size presets

Loading States

Loading button + spinner variants

Dashboard KPI Row

KPI cards: Total Revenue, Active Merchants, Pending Settlements