@plocks/spotlight
v0.2.0
Published
A command palette (⌘K search) for plocks.
Maintainers
Readme
A command palette (⌘K search) for plocks. Part of plocks: it builds on @plocks/ui and reads the same theme.
Contains Spotlight and the spotlight store (open, close, toggle).
Installation
npm install @plocks/ui @plocks/spotlightUsage
Render inside the PlocksProvider from @plocks/ui:
import { Spotlight, spotlight } from '@plocks/spotlight';
<Spotlight actions={actions} shortcut={['mod+k']} />
// open it from anywhere
spotlight.open();See plocks.dev for every component, prop and example.
