@smthrs/ui
v0.35.0
Published
Shared shadcn-anatomy component library for Smithers UIs. Radix primitives + CVA variant APIs styled with the ui-styleguide theme tokens, shipped as CSS-in-TS strings so components bundle through the gateway's Bun.build and follow light/dark (prefers-colo
Readme
@smthrs/ui
Shared component library for Smithers UIs: shadcn component anatomy (compound
slots, CVA variant APIs, asChild, data-slot attributes) and Radix behavior,
styled entirely through theme tokens so every component is correct in light and
dark and honors prefers-reduced-motion.
Styling ships as CSS-in-TS (smithersUiCss) because the gateway UI bundler
drops .css imports. Render <SmithersUiStyles /> once at the root; every
component also self-injects the composed sheet plus its lane CSS fragment as a
fallback. All classes are namespaced sui-*.
import { SmithersUiStyles, Button, StatusPill } from "smthrs/ui";Families
- Base primitives:
Button,Badge,Card,Input,Label,Alert,Table,Tabs,Dialog,Tooltip,Select,Progress,Separator,Skeleton,Spinner,EmptyState,SectionHeader,RowButton,KpiStat,StageStrip,CollapsiblePanel,DiffHunks,FileTree,Markdown. - Conversation:
Messagefamily,MessageBranchfamily,Bubblefamily,MessageScroller(drop-in and compound anatomy plus hooks),CompactGroup,ConversationCheckpoint,ChatMessage,ChatTranscript,ChatComposer,Marker,Shimmer. - Prompt and attachments:
PromptInputfamily withusePromptInputAttachments, and theAttachmentcompound. - Reasoning and tools:
Reasoning,ChainOfThought,ToolCall,CodeBlock(with header/filename/group/tabs),AgentOutput,MessageResponse,parseAgentOutput,formatPartialJson. - Plans, tasks, queues:
Planfamily,TaskItem,AgentTaskfamily,Queuefamily,ActivityTimeline. - Approvals and checkpoints:
Confirmationfamily,ApprovalCard,Checkpointfamily. - Sources and citations:
Sources,InlineCitationwith card/carousel/quote,Suggestion,OpenInChat. - Agents and context:
AgentDefinition,AgentCard,ModelSelector,ModelBadge,ProviderBadge,ContextUsagefamily. - Coding artifacts:
Artifact,Snippet,PackageInfo,SchemaDisplay,StackTrace,TestResults,Commit,ChangeSummary,EnvironmentVariables,SecretField. - Sandbox previews:
Sandbox/SandboxHeader/SandboxStatus/SandboxActions/SandboxContent(also exported asAgentSandbox*for back-compat),WebPreview,JSXPreview. - Workflow canvas:
WorkflowCanvasnode/edge/controls/panel/toolbar/minimap anatomy.
Heavy renderers stay behind smthrs/ui/adapters/* subpaths so
the base barrel tree-shakes clean. Gateway-bound wrappers
(GatewayApprovalList, GatewayApprovalConfirmation,
GatewayCheckpointControls, SmithersCanvasNode) live in
smthrs/gateway-ui.
Provenance for every ported family is recorded per lane under provenance/
and aggregated in shadcn-provenance.json; node scripts/check-ui-architecture.mjs
enforces the catalog.
