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-global-search

Lemma Global Search

lemma/lemma-global-search
UnverifiedBlock

A command-bar style global search across configured record tables and file search results, with progressive source loading, configurable result actions, lean appearance controls, and agent-name handoff.

Install it

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

Source

registry/default/lemma-global-search/components/lemma-global-search.tsxraw.githubusercontent.com/lemma-work/lemma-platform/main/lemma-typescript/lemma-global-search.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import type { LemmaClient } from "lemma-sdk"
5import {
6 AlertCircle,
7 ArrowUpRight,
8 Bot,
9 Database,
10 FileText,
11 Loader2,
12 Search,
13 X,
14} from "lucide-react"
15import { Badge } from "@/components/lemma/ui/badge"
16import { Button } from "@/components/lemma/ui/button"
17import {
18 Dialog,
19 DialogContent,
20 DialogDescription,
21 DialogTitle,
22} from "@/components/lemma/ui/dialog"
23import { Input } from "@/components/lemma/ui/input"
24import { Separator } from "@/components/lemma/ui/separator"
25import { cn } from "@/components/lemma/lib/utils"
26
27type SearchRecord = Record<string, unknown>
28type ResultIcon = React.ComponentType<{ className?: string }>
29type FileSearchOptions = Parameters<LemmaClient["files"]["search"]>[1]
30type FileSearchMethod = NonNullable<FileSearchOptions>["searchMethod"]
31type FileSearchResponse = Awaited<ReturnType<LemmaClient["files"]["search"]>>
32type FileSearchResult = FileSearchResponse["results"][number]
33type AgentConversation = Awaited<ReturnType<LemmaClient["conversations"]["createForAgent"]>>
34type SearchSourceType = "table" | "files"
35type SearchSourceStatus = "idle" | "loading" | "success" | "empty" | "error"
36
37export type LemmaGlobalSearchOpenMode = "navigate" | "new-tab" | "callback" | "none"
38export type LemmaGlobalSearchAppearance = "default" | "minimal" | "borderless" | "contained"
39export type LemmaGlobalSearchDensity = "compact" | "comfortable" | "spacious"
40export type LemmaGlobalSearchRadius = "none" | "sm" | "md" | "lg" | "xl"
41
42export interface LemmaGlobalSearchResultSummary {
43 key: string
44 type: "record" | "file"
45 sourceLabel: string
46 title: string
47 subtitle: string | null
48 preview: string | null
49}
50
51export interface LemmaGlobalSearchResultContext {
52 query: string
53 result: LemmaGlobalSearchResultSummary
54 close: () => void
55}
56
57export interface LemmaGlobalSearchAgentContext {
58 query: string
59 results: LemmaGlobalSearchResultSummary[]
60 close: () => void
61}
62
63export interface LemmaGlobalSearchAgent {
64 agentName: string
65 assistantName?: string
66 enabled?: boolean
67 label?: string
68 include?: "query" | "query-and-results"
69 resultLimit?: number
70 conversationTitle?: string | ((context: LemmaGlobalSearchAgentContext) => string)
71 buildMessage?: (context: LemmaGlobalSearchAgentContext) => string
72 href?: (conversation: AgentConversation, context: LemmaGlobalSearchAgentContext) => string | null | undefined
73 onConversationCreated?: (
74 conversation: AgentConversation,
75// … 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-global-search/components/lemma-global-search.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
today

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 Action Surfacelemma-action-surfacelemmaBlocksUnverified4 deps
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

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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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