list synonyms in Autocomplete

This commit is contained in:
Felix Roos 2023-11-24 09:37:26 +01:00
parent 4fd3e6e99c
commit 458c97b927

View File

@ -11,7 +11,12 @@ const getInnerText = (html) => {
export function Autocomplete({ doc, label }) {
return (
<div className="prose dark:prose-invert max-h-[400px] overflow-auto">
<h3 className="pt-0 mt-0">{label || getDocLabel(doc)}</h3>
<h3 className="pt-0 mt-0">{label || getDocLabel(doc)}</h3>{' '}
{!!doc.synonyms_text && (
<span>
Synonyms: <code>{doc.synonyms_text}</code>
</span>
)}
<div dangerouslySetInnerHTML={{ __html: doc.description }} />
<ul>
{doc.params?.map(({ name, type, description }, i) => (