Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
AIReact Native

Tool activity

Disclose tool status and results.

Public APILumenToolActivityReact Native

Native example

Use Tool activity

The host runs the tool and updates status and statusLabel. Keep it collapsed unless the result needs attention.

Tool activity rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the Tool activity demo
tsx
import { LumenToolActivity, type LumenToolStatus } from '@santi020k/lumen-react-native'

export function SearchStep({ status, found }: { status: LumenToolStatus; found: number }) {
  return (
    <LumenToolActivity
      label="Search the web"
      status={status}
      statusLabel={status === 'running' ? 'Searching…' : `Found ${found} sources`}
    >
      lumen.santi020k.com, reactnative.dev and developer.apple.com
    </LumenToolActivity>
  )
}
React Native
A running web search shown as a collapsible card with its live status.

Reference

Public API

The primary shared and platform-specific options exposed by LumenToolActivity.

APIValues or typeDefaultDescription
label / status / statusLabelsummary / tool status / status textrequired / queued / requiredThe host runs the tool and updates status and statusLabel.

Native behavior

Design and accessibility

When to use it

The host runs the tool and updates status and statusLabel. Keep it collapsed unless the result needs attention.

Accessibility

Summary button with expanded state; status label announced politely.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose Web
React Native docsNative primitives