Lemma Global Search
lemma/lemma-global-searchUnverifiedBlock
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.jsonSource
1"use client"23import * 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"2627type 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"3637export 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"4142export interface LemmaGlobalSearchResultSummary {43 key: string44 type: "record" | "file"45 sourceLabel: string46 title: string47 subtitle: string | null48 preview: string | null49}5051export interface LemmaGlobalSearchResultContext {52 query: string53 result: LemmaGlobalSearchResultSummary54 close: () => void55}5657export interface LemmaGlobalSearchAgentContext {58 query: string59 results: LemmaGlobalSearchResultSummary[]60 close: () => void61}6263export interface LemmaGlobalSearchAgent {64 agentName: string65 assistantName?: string66 enabled?: boolean67 label?: string68 include?: "query" | "query-and-results"69 resultLimit?: number70 conversationTitle?: string | ((context: LemmaGlobalSearchAgentContext) => string)71 buildMessage?: (context: LemmaGlobalSearchAgentContext) => string72 href?: (conversation: AgentConversation, context: LemmaGlobalSearchAgentContext) => string | null | undefined73 onConversationCreated?: (74 conversation: AgentConversation,75// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from lemma
All 20 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Lemma Action Surfacelemma-action-surface | lemma | Blocks | Unverified | 4 deps | |
| Lemma Activity Feedlemma-activity-feed | lemma | Blocks | Unverified | 4 deps · 3 files | |
| Lemma Agent Conversation Experiencelemma-assistant-experience | lemma | Blocks | Unverified | 7 deps · 3 files | |
| Lemma Breadcrumbslemma-breadcrumbs | lemma | Blocks | Unverified | 3 deps | |
| Lemma Commentslemma-comments | lemma | Blocks | Unverified | 4 deps · 3 files | |
| Lemma Detail Panellemma-detail-panel | lemma | Blocks | Unverified | 4 deps · 7 files | |
| Lemma Document Workspacelemma-document-workspace | lemma | Blocks | Unverified | 6 deps | |
| Lemma File Browserlemma-file-browser | lemma | Blocks | Unverified | 4 deps |
