We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3db23a commit f599070Copy full SHA for f599070
src/components/search.tsx
@@ -232,6 +232,24 @@ export function SearchProvider({ children }: React.PropsWithChildren) {
232
}
233
234
function Hit({ hit, children }: { hit: any; children: React.ReactNode }) {
235
+ if (isTailwindPlusURL(hit.url)) {
236
+ return (
237
+ <a
238
+ href={hit.url}
239
+ className={clsx({
240
+ "DocSearch-Hit--Result": hit.__is_result?.(),
241
+ "DocSearch-Hit--Parent": hit.__is_parent?.(),
242
+ "DocSearch-Hit--FirstChild": hit.__is_first?.(),
243
+ "DocSearch-Hit--LastChild": hit.__is_last?.(),
244
+ "DocSearch-Hit--Child": hit.__is_child?.(),
245
+ "DocSearch-Hit--TailwindUI": hit.__is_tailwindui?.(),
246
+ })}
247
+ >
248
+ {children}
249
+ </a>
250
+ )
251
+ }
252
+
253
return (
254
<Link
255
href={hit.url}
0 commit comments