Getting Started & Section Launchpad Grid
MSAI section landing pattern: a crisp heading, optional toggleable Help explainer box (zero thick left borders), and a uniform grid of icon-led InfoCards with subtle metadata, selected state, and dimmed coming-soon handling.
Install UI SDK & packages
npm install @ui-sdk/react @ui-sdk/core lucide-react
Give your agent the UI SDK skill
npx skills add vercel-labs/ui --skill ui-sdk
UI SDK entries:
@ui-sdk/react/button
@ui-sdk/react/collapsible
"use client"; import * as React from "react"; import { ArrowRight, Blocks, BookOpen, Clock, Lightbulb, Mail, Rocket } from "lucide-react"; import type { LucideIcon } from "lucide-react"; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@ui-sdk/react/collapsible"; export interface LaunchpadCard { id: string; icon: LucideIcon; title: string; description: string; meta?: string; disabled?: boolean; } export interface SectionLaunchpadGridProps { title?: string; subtitle?: string; helpTitle?: string; helpBody?: string; cards?: LaunchpadCard[]; onSelect?: (id: string) => void; } const DEFAULT_CARDS: LaunchpadCard[] = [ { id: "frameworks", icon: Blocks, title: "Framework Extractor", description: "Turn raw notes or transcripts into reusable step-by-step frameworks.", meta: "6 templates" }, { id: "emails", icon: Mail, title: "Email Sequences", description: "Draft welcome, launch, and follow-up series in your saved voice.", meta: "5 workflows" }, { id: "playbooks", icon: BookOpen, title: "Playbook Library", description: "Browse proven launch scripts and copy blocks your team already trusts.", meta: "18 saved" }, { id: "routines", icon: Clock, title: "Scheduled Routines", description: "Run recurring checks and morning digests automatically.", meta: "4 active" }, { id: "launch", icon: Rocket, title: "Campaign Builder", description: "Bundle pages, emails, and checklists into one shippable kit.", disabled: true, meta: "Coming soon" }, ]; export function SectionLaunchpadGrid({ title = "Pick where to start", subtitle = "Every tool below pulls from your active workspace context automatically.", helpTitle = "How this workspace works", helpBody = "Choose one destination to jump straight in. Your selected character, voice, and audience stay synced across every tool.", cards = DEFAULT_CARDS, onSelect, }: SectionLaunchpadGridProps) { const [selectedId, setSelectedId] = React.useState<string>("frameworks"); const [helpOpen, setHelpOpen] = React.useState(true); return ( <section className="space-y-5"> <div className="flex flex-wrap items-end justify-between gap-3"> <div> <h2 className="text-xl font-bold tracking-tight">{title}</h2> <p className="mt-1 text-sm text-slate-500 dark:text-slate-400">{subtitle}</p> </div> <Collapsible name="Toggle help explainer" open={helpOpen} onOpenChange={setHelpOpen}> <CollapsibleTrigger asChild> <button type="button" className="inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-full border border-slate-200 bg-white px-3 text-xs font-semibold text-slate-600 hover:text-slate-900 dark:border-slate-700 dark:bg-[#162033] dark:text-slate-300" > <Lightbulb className="h-3.5 w-3.5 text-amber-400" /> {helpOpen ? "Hide guide" : "Show guide"} </button> </CollapsibleTrigger> <CollapsibleContent className="mt-3 w-full"> <div className="rounded-xl border border-slate-200 bg-slate-50 p-3.5 text-xs leading-relaxed text-slate-600 dark:border-slate-800 dark:bg-[#111827] dark:text-slate-300"> <strong className="block text-slate-900 dark:text-white">{helpTitle}</strong> <span className="mt-0.5 block">{helpBody}</span> </div> </CollapsibleContent> </Collapsible> </div> <div className="grid gap-3.5 sm:grid-cols-2 lg:grid-cols-3"> {cards.map((card) => { const Icon = card.icon; const active = selectedId === card.id; return ( <button key={card.id} type="button" disabled={card.disabled} onClick={() => { setSelectedId(card.id); onSelect?.(card.id); }} className={`group flex flex-col items-start rounded-2xl border p-4 text-left transition ${ card.disabled ? "cursor-not-allowed border-slate-200/70 bg-slate-50/50 opacity-50 dark:border-slate-800/70 dark:bg-[#0e1422]/60" : active ? "cursor-pointer border-sky-400/70 bg-sky-500/10 shadow-sm" : "cursor-pointer border-slate-200 bg-white hover:border-slate-300 dark:border-slate-800 dark:bg-[#111827] dark:hover:border-slate-700" }`} > <span className="grid h-9 w-9 place-items-center rounded-xl bg-sky-500/15 text-sky-400"> <Icon className="h-4 w-4" /> </span> <span className="mt-3 text-sm font-bold">{card.title}</span> <span className="mt-1 text-xs leading-relaxed text-slate-500 dark:text-slate-400"> {card.description} </span> <span className="mt-auto flex w-full items-center justify-between pt-3 text-[11px] font-semibold text-slate-400"> <span>{card.meta}</span> {!card.disabled && ( <ArrowRight className="h-3.5 w-3.5 transition group-hover:translate-x-0.5 group-hover:text-sky-400" /> )} </span> </button> ); })} </div> </section> ); } export default SectionLaunchpadGrid;