timc1 / kbar

fast, portable, and extensible cmd+k interface for your site
https://kbar.vercel.app
MIT License
4.84k stars 185 forks source link

data prop in createAction #296

Closed yogen9 closed 1 year ago

yogen9 commented 1 year ago

Hi @timc1, Is there any way to pass additional data inside KBarResults ? I want to render some data other than title and subtitle.

timc1 commented 1 year ago

Hey @yogen9, sure you can; however, it isn't type safe. We can perhaps add a custom property for actions such that this would be supported.