* initial implementation of search modal * added hit and search suggestions * added support for multiple indices * updated sample env * added close when click outside dropdown * test for mobile * added mobile design * added shortcut * dark mode fixes * added search to docs * added plugins filter * added React import * moved filters to configurations * handled error on page load * change suggestion text * removed hits limit * handle select all * open link in current tab * change highlight colors * added support for shortcuts + auto focus * change header and footer * redesigned search ui
22 lines
404 B
TypeScript
22 lines
404 B
TypeScript
import clsx from "clsx"
|
|
|
|
type SearchHitGroupNameProps = {
|
|
name: string
|
|
}
|
|
|
|
const SearchHitGroupName = ({ name }: SearchHitGroupNameProps) => {
|
|
return (
|
|
<span
|
|
className={clsx(
|
|
"pb-0.25 flex px-0.5 pt-1",
|
|
"text-medusa-fg-muted dark:text-medusa-fg-muted-dark",
|
|
"text-compact-x-small-plus"
|
|
)}
|
|
>
|
|
{name}
|
|
</span>
|
|
)
|
|
}
|
|
|
|
export default SearchHitGroupName
|