Skip to documentation

Design system / Molecules

Molecule / Feedback

GuidanceCard

GuidanceCard presents persistent, in-flow advice inside a quiet surface. It uses a non-live note role, a visible title and an optional decorative icon.

Live example

Live preview

Current component with fictional data. Example changes are not persisted.

Before you begin

Check the submission window on the linked page before you begin.

Responsibility

Card supplies the panel surface and elevation contract; Text supplies semantic size and reading rhythm. The caller supplies the title, content and display condition. Unlike an Alert, this is not live feedback. Unlike QuietNote, it uses a filled, bounded panel rather than a margin rule.

Public contract

The table describes supported inputs, exported parts and caller responsibilities. A callback supplies a command, such as saving a draft. These notes are maintained manually; check current source types before integration.

Maintained component API notes; current source is authoritative
Prop / partTypeRequirementResponsibility
titlestringRequiredNames the role=note region and provides the visible title. It is not a document heading.
childrenReactNodeRequiredExplanatory content. The caller owns the message, condition and any navigation outside this note.
iconReactNodeOptionalDecorative illustration hidden from assistive technology. The caller supplies the icon.
classNamestringOptionalOuter Card classes for route-level sizing and placement. Base surface styling stays in GuidanceCard.

API notes are curated documentation, not generated types. The source linked above is the current implementation; update these notes alongside API changes.

State and behavior

Identify which values the caller controls and which behavior the component or underlying primitive owns. A local example does not supply persistence, authorization or a complete product lifecycle.

This server-compatible presentation has no client state, behavior hook, request or live announcement. Callers decide when to show it and must not use it as a loading, success or error alert.

Dependencies

  • Card and CardContent
  • Text
  • Optional caller-supplied decorative icon

Token and styling contract

These notes identify theme roles, utilities and direct style values used by the source. Direct colors or timings are implementation exceptions, not recommendations to bypass the theme.

bg-surface-raised / bg-card
Theme-scoped panel and icon-holder surfaces.
border / rounded-xl / rounded-lg
Card border and corner roles; no fixed palette values.
text-body / text-supporting / text-text-muted / leading-prose
Title and description use shared fluid type roles and a loose explanation rhythm.
Card elevation=flat
Inline guidance has no raised shadow.

Boundaries and limitations

  • Static role=note semantics. Use Alert for live feedback and EmptyStateCard when there is no data to display.
  • No action or dismissal slot. Keep essential instructions visible and put navigation next to the note when needed.
  • Do not embed product vocabulary or infer authorization in this generic component. A route or instance supplies both copy and authorized context.

Where to make a change

Change the shared panel, spacing, icon treatment or typography in guidanceCard.tsx. Change product copy and display conditions in its owning route or named instance. Card and Text changes also reach this molecule.

Selected real uses

No product consumer is recorded in this entry's selected-use notes. The implementation and specimen establish availability, not adoption. These notes are not an exhaustive usage scan.

These traces describe selected uses, not every dependency. Repository-only paths are shown as references; only approved files have public source views.

Usage contract

import { GuidanceCard } from "@/components/ui/guidanceCard";
import { Info } from "lucide-react";

<GuidanceCard title="Before you begin" icon={<Info className="size-5" aria-hidden />}>
  Check the submission window on the linked page before you begin.
</GuidanceCard>

Illustrative consumer bindings, not a self-contained product workflow. Live examples supply only local state or explicit fictional props.

All molecules
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.