github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/docs-website/src/theme/SearchBar.js (about) 1 // By default, the classic theme does not provide any SearchBar implementation 2 // If you swizzled this, it is your responsibility to provide an implementation 3 // Tip: swizzle the SearchBar from the Algolia theme for inspiration: 4 // npm run swizzle @docusaurus/theme-search-algolia SearchBar 5 import SearchBar from "@easyops-cn/docusaurus-search-local/dist/client/client/theme/SearchBar"; 6 import SearchSvg from "../css/images/svg/search-icon-dark.svg"; 7 import React from "react"; 8 9 const CustomSearchBar = (props) => { 10 return ( 11 <div 12 style={{ flexDirection: "row", display: "flex", alignItems: "center" }} 13 > 14 <SearchBar {...props}></SearchBar> 15 <a className="svg-link mobile-search" href="/search"> 16 <SearchSvg /> 17 </a> 18 </div> 19 ); 20 }; 21 export default CustomSearchBar;