list synonyms in Autocomplete
This commit is contained in:
parent
4fd3e6e99c
commit
458c97b927
1 changed files with 6 additions and 1 deletions
|
|
@ -11,7 +11,12 @@ const getInnerText = (html) => {
|
||||||
export function Autocomplete({ doc, label }) {
|
export function Autocomplete({ doc, label }) {
|
||||||
return (
|
return (
|
||||||
<div className="prose dark:prose-invert max-h-[400px] overflow-auto">
|
<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 }} />
|
<div dangerouslySetInnerHTML={{ __html: doc.description }} />
|
||||||
<ul>
|
<ul>
|
||||||
{doc.params?.map(({ name, type, description }, i) => (
|
{doc.params?.map(({ name, type, description }, i) => (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue