Tips Panel

A grid of short tips with one action each, and progress that counts what's done.

Tips to get more out of a product, each with one action. Doing it turns the tip done and moves it back; dismissing it folds it away. The progress line counts what's done out of what's still on the board.

Category
Data & feedback
Access
Free with an account
Source
257 lines · one file
States
4 drawn
Added
13 Nov 2026

The decision inside it

Done and dismissed are different

Doing a tip counts toward progress; dismissing it takes it off the board for good and out of the count, so a dismissed tip never comes back as unfinished. A tip whose action fails stays open with the error.

When to use it

Use Tips Panel for a small set of things a new user can do next, each with one action, and progress that only counts what's done. For a guided first run use Setup Guide; for one suggestion use Suggestion Banner.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Liro's Tips Panel for this.
Install it: npx shadcn@latest add @liro/tips-panel
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/tips-panel.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Free components install through the @liro registry with your CLI token: see the Namespaced tab.

Usage

components/getting-started.tsx
import { TipsPanel, type Tip } from "@/components/ui/tips-panel";

export function GettingStarted({ tips, api }: { tips: Tip[]; api: { done: (id: string) => void; dismiss: (id: string) => void } }) {
  return <TipsPanel title="Get started" tips={tips} onDone={api.done} onDismiss={api.dismiss} />;
}

API reference

“Copy prompt” above puts a full brief on your clipboard, install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

TypeNotes
tipsTip[] Yes–
titlestring No–
onDone(id: string) => void NoCalled when a tip's action succeeds. Persist it so it stays done.
onDismiss(id: string) => void NoCalled when a tip is dismissed (after the undo window). Persist it so it never comes back.
undoFornumber NoSeconds to undo a dismiss. Default 5.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Liro foundations, installed alongside it

liro-themebutton

States

All of them are drawn by the component. None is left for you to design.

  • Getting started
  • Some done
  • All done
  • Action fails

Accessibility

  • Keyboard reachable throughout, in visual order
  • Focus trapped in overlays, Escape closes them
  • Focus returns to whatever opened it
  • Live regions announce what changed, not that something did
  • Honours prefers-reduced-motion

Responsive behavior

  • Sizes to its container, not the viewport
  • Usable from 320px up
  • Pointer-based interaction, so trackpad and touch both work
  • No hover-only affordances