These are composition patterns — ready-to-assemble blocks built from the
core @marmoui/ui primitives (Card, Avatar, Badge, Progress, Alert,
DropdownMenu, Input, Tabs, toaster, etc.). They mirror the floating
component collage on the marketing hero and show how the primitives combine
into real dashboard surfaces.
Each preview is a function you can copy into your own app and adapt. They do
not add new exports to @marmoui/ui — they compose what is already there.
import {
ProjectCardPreview,
MessageCardPreview,
ProfileCardPreview,
ColoredWidgetPreview,
SecondaryNavPreview,
ProfileDropdownMenuPreview,
CommentPreview,
} from '@/components/previews/marketing-cards-previews';A bounded summary of a project: icon, title, status tag, description, progress, and a footer with task count, due date, and an avatar stack.
Composes Card, Badge, Progress, AvatarStack, and IconButton
Services Features
Science is driven by evidence gathered in experiments, and by the falsification of extant theories and their replacement with newer, asymptotically truer, ones.
<ProjectCardPreview
title="Services Features"
tag="API Design"
description="Science is driven by evidence gathered in experiments…"
progress={75}
tasks="3/6"
dueDate="1 Jan 2023"
/>A compact horizontal row for an inbox item — sender, timestamp, and a single preview line, with an unread indicator bar.
Composes Card, Avatar with status, and truncated text
John Locke
10:20 AMMessage excerpt goes here and change it dfaaa
<MessageCardPreview
sender="John Locke"
time="10:20 AM"
preview="Message excerpt goes here and change it dfaaa"
unread
/>A profile surface with a header image, overlapping avatar, name/role, a three-column stat row, and footer details (projects, location).
Composes Card, Avatar, and a stats grid

Benjamin Franklin
Author
<ProfileCardPreview
name="Benjamin Franklin"
role="Author"
posts="997"
followers="373k"
following="299"
projects="5 Projects"
location="Istanbul, Turkey"
headerImage="/marketing/benjamin-header.jpg"
/>A solid-accent KPI tile — icon, label, large value, and a trend line. Use it inside a dashboard grid where a neutral surface is not enough.
Accent backgrounds for high-emphasis KPIs
New epics
32
<ColoredWidgetPreview
label="New epics"
value={32}
trend="+43%"
accent="violet"
/>A vertical list of labeled destinations with icons and optional count badges. Use it as a secondary rail inside a two-pane layout.
Composes Card with a styled list of icon rows
<SecondaryNavPreview />A menu anchored to a profile trigger — header with the user, an integration status row, account links, and a destructive log-out item.
Composes DropdownMenu, Avatar, and Badge
<ProfileDropdownMenuPreview />A comment composer (InputComment) — author label with required marker, avatar,
white inline field with emoji picker affordance, primary send button, and helper text.
Composes Avatar, inline input, emoji trigger, and IconButton send
Thaer Shayeb *
Comment will be public
<InputCommentPreview
author="Thaer Shayeb"
required
initialValue="This looks great"
/>These smaller blocks feed the same hero collage and are documented individually
on their own pages: Alert, Toaster,
Tabs, Badge, and Input.
Composes Alert with icon, title, description, and an action
Our website will be undergoing scheduled maintenance this Saturday from 2 AM to 4 AM.
<ScheduledMaintenanceAlertPreview />Info and success toast rows with Undo / close actions
<ToastsPreview />Success, warning, and info badges in a row
<StatusBadgesPreview />Composes Tabs with the line variant
<BoardTabsPreview />Composes Input with and without a start adornment
<InputsPreview />These previews live in the docs app on purpose. Copy the composition into your project and adjust the props and content to your domain — they are patterns, not part of the published component API.
If a preview does not fit, compose the underlying primitive (Card,
Avatar, Badge, Progress) directly. The previews are starting
points, not a cage.
ColoredWidgetPreview accents are high-emphasis. One accent per dashboard
section keeps the hierarchy readable.