Checklist ring — Onboarding block
Proonboarding-checklist-ring · for app, home pages
Checklist ring
A compact setup card with a static completion ring and every account step visible.
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-ringUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import OnboardingChecklistRing from '@/components/trame/blocks/onboarding/onboarding-checklist-ring.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>
<OnboardingChecklistRing v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe checklist’s heading ("Getting started") |
| intro | string | Wordsone 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 |
| dismiss | string | Actionhides the checklist once the person is done with it |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Step steps[] · 8 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | the step’s id |
| title* | string | Wordsthe step, as a short phrase ("Connect your domain") |
| description | string | Wordsone line on what it is for |
| action | string | Actionthe page where the step is done |
| actionLabel | string | Wordsthe button on the current step ("Start") |
| record | Record<string, unknown> | Datathe record the action opens, if any |
| preview | Preview | a preview of what the step sets up, shown beside the list |
| at | string | Wordswhen it was done, as the app writes it ("2 days ago", "4 Oct.") |
Preview steps[].preview · 3 props
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe preview heading |
| text* | string | Wordswhat the user will configure or see |
| details | string[] | Wordsa few short points under the preview’s text |
Options options · 6 props
| Prop | Type | Description |
|---|---|---|
| dismissLabel | string | Wordsthe dismiss button ("Hide") |
| successText | string | Wordsthe line shown when every step is done ("Your shop is ready") |
| doneLabel | string | Wordsthe word for a done step |
| currentLabel | string | Wordsthe word for the current step |
| todoLabel | string | Wordsthe word for a step still to do |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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
stepsfrom 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.