Configuration Options
Last updated
Reference for KNav configuration options.
data-workspace (required)Your unique workspace identifier from the KNav dashboard.
<script
src="https://embed.knav.app/embed.js"
data-workspace="my-company"
defer
></script>window.KNav.open()Opens the command palette programmatically.
document.getElementById('search-btn').addEventListener('click', () => {
window.KNav.open()
})window.KNav.close()Closes the command palette.
window.KNav.toggle()Toggles the palette open/closed.
Last updated
window.KNav.close()window.KNav.toggle()