React

Use the Slash component in a React app.

npm install @slash.tools/react

The React entry point exports a single <Slash /> component that mounts the launcher and wires up events as props.

App.tsx
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.