Onboarding card
Feedback
Onboarding card
Onboarding
Connect your first machine
Step 2 of 4
50%
Install matchina
Define a machine
Mount in your app
Test transitions
Step-by-step onboarding card with a progress bar and checklist of tasks.
card · progress · checkboximport { Card, CardHeader, CardDescription, CardTitle, CardContent } from "@/components/ui/card"
import { Stack } from "@/components/ui/stack"
import { Progress } from "@/components/ui/progress"
import { Checkbox } from "@/components/ui/checkbox"
export function OnboardingCard() {
return (
<Card>
<CardHeader>
<CardDescription className="font-mono text-[10px] tracking-[0.08em] uppercase text-text-mute">Onboarding</CardDescription>
<CardTitle>Connect your first machine</CardTitle>
</CardHeader>
<CardContent>
<Stack direction="col" gap="3">
<Stack direction="col" gap="0">
<Stack direction="row" justify="between" className="mb-1.5">
<p className="text-muted-foreground font-mono text-[10px] uppercase tracking-[0.06em]">Step 2 of 4</p>
<p className="text-muted-foreground font-mono text-[10px]">50%</p>
</Stack>
<Progress value={50} className="h-1" />
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox checked disabled />
<p className="text-[13px]">Install matchina</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox />
<p className="text-[13px] font-medium">Define a machine</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox disabled />
<p className="text-muted-foreground text-[13px]">Mount in your app</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox disabled />
<p className="text-muted-foreground text-[13px]">Test transitions</p>
</Stack>
</Stack>
</CardContent>
</Card>
)
}
ui26/react
<script lang="ts">
import Card from "$lib/components/ui/card.svelte"
import CardHeader from "$lib/components/ui/card-header.svelte"
import CardDescription from "$lib/components/ui/card-description.svelte"
import CardTitle from "$lib/components/ui/card-title.svelte"
import CardContent from "$lib/components/ui/card-content.svelte"
import Stack from "$lib/components/ui/stack.svelte"
import Progress from "$lib/components/ui/progress.svelte"
import Checkbox from "$lib/components/ui/checkbox.svelte"
</script>
<Card>
<CardHeader>
<CardDescription class="font-mono text-[10px] tracking-[0.08em] uppercase text-text-mute">Onboarding</CardDescription>
<CardTitle>Connect your first machine</CardTitle>
</CardHeader>
<CardContent>
<Stack direction="col" gap="3">
<Stack direction="col" gap="0">
<Stack direction="row" justify="between" class="mb-1.5">
<p class="text-muted-foreground font-mono text-[10px] uppercase tracking-[0.06em]">Step 2 of 4</p>
<p class="text-muted-foreground font-mono text-[10px]">50%</p>
</Stack>
<Progress value={50} class="h-1" />
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox checked disabled />
<p class="text-[13px]">Install matchina</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox />
<p class="text-[13px] font-medium">Define a machine</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox disabled />
<p class="text-muted-foreground text-[13px]">Mount in your app</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox disabled />
<p class="text-muted-foreground text-[13px]">Test transitions</p>
</Stack>
</Stack>
</CardContent>
</Card>
ui26/svelte
---
import Card from "@/components/ui/card.astro"
import CardHeader from "@/components/ui/card-header.astro"
import CardDescription from "@/components/ui/card-description.astro"
import CardTitle from "@/components/ui/card-title.astro"
import CardContent from "@/components/ui/card-content.astro"
import Stack from "@/components/ui/stack.astro"
import Progress from "@/components/ui/progress.astro"
import Checkbox from "@/components/ui/checkbox.astro"
---
<Card>
<CardHeader>
<CardDescription class="font-mono text-[10px] tracking-[0.08em] uppercase text-text-mute">Onboarding</CardDescription>
<CardTitle>Connect your first machine</CardTitle>
</CardHeader>
<CardContent>
<Stack direction="col" gap="3">
<Stack direction="col" gap="0">
<Stack direction="row" justify="between" class="mb-1.5">
<p class="text-muted-foreground font-mono text-[10px] uppercase tracking-[0.06em]">Step 2 of 4</p>
<p class="text-muted-foreground font-mono text-[10px]">50%</p>
</Stack>
<Progress value={50} class="h-1" />
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox checked disabled />
<p class="text-[13px]">Install matchina</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox />
<p class="text-[13px] font-medium">Define a machine</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox disabled />
<p class="text-muted-foreground text-[13px]">Mount in your app</p>
</Stack>
<Stack direction="row" gap="3" align="center">
<Checkbox disabled />
<p class="text-muted-foreground text-[13px]">Test transitions</p>
</Stack>
</Stack>
</CardContent>
</Card>
ui26/astro
{
"root": "card",
"elements": {
"card": {
"type": "Card",
"props": {},
"children": [
"header",
"content"
]
},
"header": {
"type": "CardHeader",
"props": {},
"children": [
"label",
"title"
]
},
"label": {
"type": "CardDescription",
"props": {
"text": "Onboarding",
"className": "font-mono text-[10px] tracking-[0.08em] uppercase text-text-mute"
},
"children": []
},
"title": {
"type": "CardTitle",
"props": {
"text": "Connect your first machine"
},
"children": []
},
"content": {
"type": "CardContent",
"props": {},
"children": [
"inner"
]
},
"inner": {
"type": "Stack",
"props": {
"direction": "col",
"gap": "3"
},
"children": [
"progress-section",
"step-1",
"step-2",
"step-3",
"step-4"
]
},
"progress-section": {
"type": "Stack",
"props": {
"direction": "col",
"gap": "0"
},
"children": [
"progress-hd",
"progress-bar"
]
},
"progress-hd": {
"type": "Stack",
"props": {
"direction": "row",
"justify": "between",
"className": "mb-1.5"
},
"children": [
"step-label",
"step-pct"
]
},
"step-label": {
"type": "Text",
"props": {
"content": "Step 2 of 4",
"mono": true,
"muted": true,
"className": "text-[10px] uppercase tracking-[0.06em]"
},
"children": []
},
"step-pct": {
"type": "Text",
"props": {
"content": "50%",
"mono": true,
"muted": true,
"className": "text-[10px]"
},
"children": []
},
"progress-bar": {
"type": "Progress",
"props": {
"value": 50,
"className": "h-1"
},
"children": []
},
"step-1": {
"type": "Stack",
"props": {
"direction": "row",
"gap": "3",
"align": "center"
},
"children": [
"step-1-cb",
"step-1-text"
]
},
"step-1-cb": {
"type": "Checkbox",
"props": {
"checked": true,
"disabled": true
},
"children": []
},
"step-1-text": {
"type": "Text",
"props": {
"content": "Install matchina",
"className": "text-[13px]"
},
"children": []
},
"step-2": {
"type": "Stack",
"props": {
"direction": "row",
"gap": "3",
"align": "center"
},
"children": [
"step-2-cb",
"step-2-text"
]
},
"step-2-cb": {
"type": "Checkbox",
"props": {
"checked": false,
"disabled": false
},
"children": []
},
"step-2-text": {
"type": "Text",
"props": {
"content": "Define a machine",
"className": "text-[13px] font-medium"
},
"children": []
},
"step-3": {
"type": "Stack",
"props": {
"direction": "row",
"gap": "3",
"align": "center"
},
"children": [
"step-3-cb",
"step-3-text"
]
},
"step-3-cb": {
"type": "Checkbox",
"props": {
"checked": false,
"disabled": true
},
"children": []
},
"step-3-text": {
"type": "Text",
"props": {
"content": "Mount in your app",
"className": "text-[13px]",
"muted": true
},
"children": []
},
"step-4": {
"type": "Stack",
"props": {
"direction": "row",
"gap": "3",
"align": "center"
},
"children": [
"step-4-cb",
"step-4-text"
]
},
"step-4-cb": {
"type": "Checkbox",
"props": {
"checked": false,
"disabled": true
},
"children": []
},
"step-4-text": {
"type": "Text",
"props": {
"content": "Test transitions",
"className": "text-[13px]",
"muted": true
},
"children": []
}
}
}
ui26/json-render