BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/lemma/lemma-action-surface

Lemma Action Surface

lemma/lemma-action-surface
UnverifiedBlock

A first-class long-running action launcher for direct actions, functions, workflows, and agents with button, line, and panel variants plus inspectable progress surfaces.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/lemma-work/lemma-platform/main/lemma-typescript/lemma-action-surface.json

Source

registry/default/lemma-action-surface/components/lemma-action-surface.tsxraw.githubusercontent.com/lemma-work/lemma-platform/main/lemma-typescript/lemma-action-surface.json · first 6 KB
1"use client";
2
3import { useCallback, useEffect, useMemo, useState, type ReactNode } from "react";
4import { LemmaClient, type Conversation, type ConversationMessage, type FlowRun, type FunctionRun } from "lemma-sdk";
5import { useConversationMessages, useFunctionRun, useWorkflowStart } from "lemma-sdk/react";
6import { AlertCircle, Bot, CheckCircle2, ChevronRight, Loader2, Play, Sparkles, Workflow, XCircle } from "lucide-react";
7import { cn } from "@/components/lemma/lib/utils";
8import { Badge } from "@/components/lemma/ui/badge";
9import { Button } from "@/components/lemma/ui/button";
10import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/lemma/ui/card";
11import {
12 Dialog,
13 DialogContent,
14 DialogDescription,
15 DialogFooter,
16 DialogHeader,
17 DialogTitle,
18} from "@/components/lemma/ui/dialog";
19import { Separator } from "@/components/lemma/ui/separator";
20import { Textarea } from "@/components/lemma/ui/textarea";
21
22export type LemmaActionSurfaceAppearance = "default" | "minimal" | "borderless" | "contained";
23export type LemmaActionSurfaceDensity = "compact" | "comfortable" | "spacious";
24export type LemmaActionSurfaceRadius = "none" | "sm" | "md" | "lg" | "xl";
25export type LemmaActionSurfaceVariant = "button" | "line" | "panel";
26export type LemmaActionProgressSurface = "modal" | "inline" | "none";
27
28export interface LemmaActionContext {
29 [key: string]: unknown;
30}
31
32type ActionInputValue =
33 | Record<string, unknown>
34 | ((context: LemmaActionContext) => Record<string, unknown>);
35
36interface BaseLemmaActionDefinition {
37 label: ReactNode;
38 description?: ReactNode;
39 input?: ActionInputValue;
40 runningLabels?: string[];
41 waitingLabel?: ReactNode;
42 successLabel?: ReactNode;
43 failureLabel?: ReactNode;
44}
45
46export interface LemmaDirectActionDefinition extends BaseLemmaActionDefinition {
47 kind: "direct";
48 run: (input: Record<string, unknown>, context: LemmaActionContext) => Promise<unknown> | unknown;
49}
50
51export interface LemmaFunctionActionDefinition extends BaseLemmaActionDefinition {
52 kind: "function";
53 functionName: string;
54}
55
56export interface LemmaWorkflowActionDefinition extends BaseLemmaActionDefinition {
57 kind: "workflow";
58 workflowName: string;
59}
60
61export interface LemmaAgentActionDefinition extends BaseLemmaActionDefinition {
62 kind: "agent";
63 agentName: string;
64 instructions?: string | null;
65 messageMetadata?: Record<string, unknown> | null;
66}
67
68export type LemmaActionDefinition =
69 | LemmaDirectActionDefinition
70// … truncated

What it pulls in

npm packages

  • lemma-sdk
  • lucide-react
  • clsx
  • tailwind-merge

Other registry items

  • lemma-ui

Files it writes

  • registry/default/lemma-action-surface/components/lemma-action-surface.tsx

Facts

Registry
lemma
Type
registry:block
Access
Unverified
Files written
1
Licence
AGPL-3.0
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

lemma.work lemma-work/lemma-platform on GitHub Raw registry item This item as JSON

More from lemma

All 20 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Lemma Activity Feedlemma-activity-feedlemmaBlocksUnverified4 deps · 3 files
Lemma Agent Conversation Experiencelemma-assistant-experiencelemmaBlocksUnverified7 deps · 3 files
Lemma Breadcrumbslemma-breadcrumbslemmaBlocksUnverified3 deps
Lemma Commentslemma-commentslemmaBlocksUnverified4 deps · 3 files
Lemma Detail Panellemma-detail-panellemmaBlocksUnverified4 deps · 7 files
Lemma Document Workspacelemma-document-workspacelemmaBlocksUnverified6 deps
Lemma File Browserlemma-file-browserlemmaBlocksUnverified4 deps
Lemma Global Searchlemma-global-searchlemmaBlocksUnverified4 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex