npm install @slash.tools/reactThe React entry point exports a single <Slash /> component that mounts the launcher and wires up events as props.
App.tsx
1234567891011import { Slash } from '@slash.tools/react'
export function App() { return ( <Slash apiKey={process.env.SLASH_API_KEY} theme="system" onSelect={(item) => console.log(item)} /> )}PropTypeDescription
apiKeyrequiredstringYour Slash API key.theme"light" | "dark" | "system"Controls the launcher's color scheme. Defaults to "system".onSelect(item: SlashItem) => voidCalled when an item is chosen.