Checklist cards — Onboarding block

Pro

onboarding-checklist-cards · for app, home pages

Checklist cards

A few substantial steps, each a row card with its number and a button on the current one

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/onboarding-checklist-cards

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import OnboardingChecklistCards from '@/components/trame/blocks/onboarding/onboarding-checklist-cards.vue'

const props = {
title: "Getting started",
intro: "Five steps before you open your shop to the public.",
steps: [
{
id: "shop",
title: "Create your shop",
description: "Name, logo and contact details.",
action: "settings",
at: "Oct 2"
},
{
id: "products",
title: "Add your first products",
description: "Import a file or create a product page by hand.",
action: "products",
actionLabel: "Add a product",
at: "Oct 4"
}
],
state: {
shop: "done",
products: "done",
payments: "current",
shipping: "todo",
domain: "todo"
},
dismiss: "dismiss-onboarding"
}
</script>

<template>
<OnboardingChecklistCards v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
title*stringWordsthe checklist’s heading ("Getting started")
introstringWordsone line under the title
steps*Step[]Datathe steps, in order
state*Record<string, 'done' | 'current' | 'todo'>Datawhere each step stands by step id, from the real events of the account; a step with no entry is to do
dismissstringActionhides the checklist once the person is done with it
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Step steps[] · 8 props
PropTypeDescription
id*string | numberthe step’s id
title*stringWordsthe step, as a short phrase ("Connect your domain")
descriptionstringWordsone line on what it is for
actionstringActionthe page where the step is done
actionLabelstringWordsthe button on the current step ("Start")
recordRecord<string, unknown>Datathe record the action opens, if any
previewPreviewa preview of what the step sets up, shown beside the list
atstringWordswhen it was done, as the app writes it ("2 days ago", "4 Oct.")
Preview steps[].preview · 3 props
PropTypeDescription
title*stringWordsthe preview heading
text*stringWordswhat the user will configure or see
detailsstring[]Wordsa few short points under the preview’s text
Options options · 6 props
PropTypeDescription
dismissLabelstringWordsthe dismiss button ("Hide")
successTextstringWordsthe line shown when every step is done ("Your shop is ready")
doneLabelstringWordsthe word for a done step
currentLabelstringWordsthe word for the current step
todoLabelstringWordsthe word for a step still to do
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • No motion; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: steps[], dismiss
  • Reads steps from your app

A onboarding section, for app, home pages; it uses @lucide/vue, class-variance-authority, clsx, reka-ui, tailwind-merge.

Built with

The components this block is made of; each one installs on its own too.

More onboarding blocks

  • Setup progress compact: a quiet checklist on the app home: one line per step, a progress bar and the next step when almost done.
  • Template picker gallery: An empty workspace or a "New" page with six templates or more: a filterable grid of preview cards, "Start from scratch" first.
  • Template picker list preview: Templates whose look decides the choice (documents, sites, boards): a list of names on the left, the chosen template’s large preview and its action on the right.
  • Welcome questions all at once: One or two short questions, or people who like to see everything: every question on one page as a grid of cards beside its number, the fields and the button at the foot.
  • Welcome questions one by one: Right after sign-up, three to six questions: one at a time in a calm centred column, a step count and Back, the next question shown once the current one is answered.
  • Welcome questions side preview: A wide screen where the answers shape what comes next: the questions as lists on the left, a quiet panel on the right summing up the answers so far.

All 10 onboarding blocks