Closed timc1 closed 1 year ago
Ref #323.
Dynamically enable/disable kbar; useful for controlling when command k should exist within your site:
kbar
import { useKbar } from "kbar"; function MyApp() { const { query, disabled } = useKbar(state => ({ disabled: state.disabled })); return <button onClick={() => query.disable(!disabled)}>{disabled ? "Disabled" : "Disable"}</button> }
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Ref #323.
Dynamically enable/disable
kbar
; useful for controlling when command k should exist within your site: