For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configuration Options

Reference for KNav configuration options.

Embed Script

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>

JavaScript API

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