Skip to content

DictDisplays

Demo variant of the dictionary display components, aliased in only for --mode demo. It re-exports the real components and overrides the click-through rows / kanji card so a link to an entry that was not captured in the fixtures renders disabled (muted, no click) instead of landing on an empty page. This one file gates the search results, the word / kanji views, and the word dialog at once.

Functions

JMEntryRow()

function JMEntryRow(__namedParameters): Element;

Defined in: src/demo/components/DictDisplays.tsx:24

A JMdict result row, disabled when the entry is not in the fixtures.

Parameters

Parameter Type
__namedParameters { entry: JMEntry; onSelect: (word) => void; }
__namedParameters.entry JMEntry
__namedParameters.onSelect (word) => void

Returns

Element


JMNEntryRow()

function JMNEntryRow(__namedParameters): Element;

Defined in: src/demo/components/DictDisplays.tsx:53

A JMnedict result row, disabled when the entry is not in the fixtures.

Parameters

Parameter Type
__namedParameters { entry: JMNEntry; onSelect: (word) => void; }
__namedParameters.entry JMNEntry
__namedParameters.onSelect (word) => void

Returns

Element


KanjiCard()

function KanjiCard(props): Element;

Defined in: src/demo/components/DictDisplays.tsx:105

The real kanji card, but its open-in-dictionary link is dropped when the kanji is not in the fixtures.

Parameters

Parameter Type
props { isLast: boolean; kanji: KanjiInfo; onKanjiClick?: (literal) => void; onRadicalClick?: (radical) => void; }
props.isLast boolean
props.kanji KanjiInfo
props.onKanjiClick? (literal) => void
props.onRadicalClick? (radical) => void

Returns

Element


KanjiRow()

function KanjiRow(__namedParameters): Element;

Defined in: src/demo/components/DictDisplays.tsx:80

A kanji result row, disabled when the kanji is not in the fixtures.

Parameters

Parameter Type
__namedParameters { kanji: KanjiInfo; onSelect: (word) => void; }
__namedParameters.kanji KanjiInfo
__namedParameters.onSelect (word) => void

Returns

Element

References

DictTabs

Re-exports DictTabs


EntryBadges

Re-exports EntryBadges


ExamplesSection

Re-exports ExamplesSection


GrammarSection

Re-exports GrammarSection


JmdictEntryDisplay

Re-exports JmdictEntryDisplay


JmnedictEntryDisplay

Re-exports JmnedictEntryDisplay