fast, portable, and extensible cmd+k interface for your site
MIT License
Bot releases are visible (Hide)
Published by timc1 almost 3 years ago
Introducing the ability to easily add undo & redo functionality to actions!
perform
:
createAction({
perform: () => {
// logic to perform
return () => {
// logic to undo
}
}
})
action.command.perform
action.command.undo
, redo using action.command.redo
useDeepMatches
in favor of just useMatches
. #124BaseAction
renamed to Action
onOpen
, onClose
, onQueryChange
, onSelectAction
#110/example
now import from the global entry point. #116n
levels of actions deep at ease, and speed. #105useRegisterActions
now accepts an optional dependencies array enabling users to invert control on the actions cache. https://github.com/timc1/kbar/commit/b10bd501c16fef2dc3eb94f0c635741ac9a40f6a
useMatches
, which returns grouped actions based on the current search query. https://github.com/timc1/kbar/commit/6dc7b1227599e302aafa5fcf1ab2fb828329c146
currentRootActionId
. https://github.com/timc1/kbar/commit/c53f585646ebfae68af6ac6e74e593b27068f62d
contenteditable
elements https://github.com/timc1/kbar/commit/2f1de2bdd0564ee89268c7964f82ebadbd885936
event.preventDefault
is called. https://github.com/timc1/kbar/commit/828bad6ac13a0bae69981c5296ddddcf8e5348c3
Thanks @tommoor for the contributions 💯
Published by timc1 about 3 years ago
icon
and subtitle
are now part of the Action
type – please see the example for usage.perform
on a nonexistent actionPublished by timc1 about 3 years ago
kbar
with our lib targeted at esnext
. Now, kbar
is a little more conservative, targeting es5
.Published by timc1 about 3 years ago
We've reworked and improved the API to support all types of styling; className
s, inline styles, css-in-js. A few components have been moved around – please reference the updated Readme and documentation for usage.
docs
📚