Search has been implemented in the full-version only. If you have started your project using the starter kit as per our suggestion, please follow the below steps in order to implement search functionality in your project.
Begin by installing kbar
package which is related to search functionality
Run the appropriate command in your project's root directory based on your package manager:
- pnpm
- yarn
- npm
pnpm install kbar
yarn install kbar
npm install kbar
-
Copy
full-version/src/components/layout/shared/search
folder from the full-version and paste it in your project'ssrc/components/layout/shared
folder. -
You have to create a
searchData.ts/js
file in your project'ssrc/data/
folder. This file will contain the data that will be used for search. -
Import the
<NavSearch />
component insrc/components/layout/vertical/NavbarContent.tsx
file and add after the<NavToggle />
component.
That's it. You have successfully implemented search functionality in your project.🥳🎉