Skip to main content

Types

All types are exported from the core package and can be imported directly:

import type { Language, Item, TooltipTrigger } from '@deadlock-api/ui-core';

Language​

Enum with supported language codes for item data localization. Used by dl-provider.

Enum KeyValueLanguage
Language.PT_BRbrazilianBrazilian Portuguese
Language.CSczechCzech
Language.ENenglishEnglish
Language.FRfrenchFrench
Language.DEgermanGerman
Language.IDindonesianIndonesian
Language.ITitalianItalian
Language.JAjapaneseJapanese
Language.KOkoreanaKorean
Language.ES_LAlatamLatin American Spanish
Language.PLpolishPolish
Language.RUrussianRussian
Language.ZH_CNschineseSimplified Chinese
Language.ESspanishSpanish
Language.THthaiThai
Language.TRturkishTurkish
Language.UKukrainianUkrainian
import { Language, SUPPORTED_LANGUAGES } from '@deadlock-api/ui-core';

Language.EN; // 'english'
Language.PT_BR; // 'brazilian'
SUPPORTED_LANGUAGES; // ['brazilian', 'czech', 'english', ...]

TooltipTrigger​

Controls how the item tooltip is triggered.

ValueDescription
hoverShows on mouse hover
clickShows on click
noneDisabled

TooltipPlacement​

Preferred tooltip position.

ValueDescription
autoPicks the side with the most space
topAbove the element
bottomBelow the element
leftLeft of the element
rightRight of the element