mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-13 22:58:34 +00:00
list synonyms in Autocomplete
This commit is contained in:
parent
4fd3e6e99c
commit
458c97b927
@ -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) => (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user