Apple Spotlight
A macOS-style spotlight search component with animated shortcuts and search results. Features a beautiful blur effect, animated shortcut buttons, and live search results.
Install using CLI
npx shadcn@latest add "https://obsidianui.dev/r/apple-spotlight.json"Install Manually
1
Install dependencies
2
Add util file
Create a file lib/utils.ts:
3
Copy the source code
Copy the code into components/ui/apple-spotlight.tsx
Usage
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
| isOpen | boolean | true | Controls visibility of spotlight |
| handleClose | () => void | - | Callback when spotlight is closed |
| shortcuts | Shortcut[] | default shortcuts | Array of shortcut buttons |
