Components
QuickReplyChips
Tappable canned replies (the comms job — there is no keyboard on the lens, text is voice). Each chip is D-pad-focusable. Keep the set short and glanceable.
Installation
npx @glasskit-ui/cli add quick-reply-chipsInstall the SDK (it provides GlassViewport, useDpad and the stylesheet), then copy these files into your project:
npm install @glasskit-ui/react// components/lib/utils.tsexport type ClassValue = string | number | null | undefined | false;/** * Join truthy class names. Dependency-free on purpose: the lens components * style via bespoke semantic classes (no conflicting Tailwind utilities to * de-dupe), so this needs no clsx/tailwind-merge and resolves from anywhere * the registry is vendored. */export function cn(...inputs: ClassValue[]): string { return inputs.filter(Boolean).join(" ");}/** * Accessible name from a free-form `label` prop: the label itself when it's a * plain string, otherwise undefined (a ReactNode can't become an aria-label). */export function stringLabel(label: unknown): string | undefined { return typeof label === "string" ? label : undefined;}// components/glasskit/quick-reply-chips.tsximport type { ReactNode } from "react";import { cn } from "../lib/utils";/** * <QuickReplyChips> — tappable canned replies (the comms job; there is no * keyboard on the lens — text is voice). Each chip is D-pad-focusable. Keep the * set short and the labels glanceable. */export function QuickReplyChips({ options, onSelect, className,}: { options: string[]; onSelect?: (reply: string) => void; className?: string;}) { return ( <div className={cn("gk-chips", className)}> {options.map((o, i) => ( <button key={`${i}-${o}`} type="button" onClick={onSelect ? () => onSelect(o) : undefined} className="focusable gk-chip t-body" > {o} </button> ))} </div> );}Usage
<QuickReplyChips options={["On my way", "5 min", "Call me"]} onSelect={send}/>Props
Prop
Type
List
A vertical stack of focusable rows (watchOS list spirit). Keep it short — a glanceable HUD caps at 3–5 rows. Compose List with ListRow (leading glyph, label, trailing value).
Segmented
Pick one of a few options (a watchOS-style segmented control). Each segment is a D-pad-focusable radio; the selected one lifts with the accent. Keep it to 2–4 options.