Web · Components
UIProvider
App-wide settings of the library.
Import
App-wide settings of the library. Placed once in the root layout.
- Pass Next.js
Linkonce vialink; every component takinghrefuses it (asChildis not needed). - Introduce your icon library via
icons; components then take icons by name, likeicon="save". - Set up the locale via
localeandmessages: the app's translations (useT) and library texts (ui) share one dictionary. SeecreateI18n.currencyis the currency. - Renders
confirmdialogs. - Sets up the zero-width overlay scrollbar for the page (
scrollbar). - Sets the UI density (
density: compact, standard, comfortable).
Can be nested: the inner provider changes only the settings it gives and takes the rest from the outer one.
Next.js: Functions (link={Link}, icons={...}) cannot be passed from a server-component layout. Use the @yasinsensoy/web/next provider, which wires next/link for you; if you pass icons, set it up in a small client file.
Examples
useUI
functionReturns the settings of the nearest UIProvider. Without a provider the defaults are returned, so components work without one. Use useT for translation.
Examples
useAppearance
functionReturns the nearest UIProvider's appearance settings: component defaults, custom effects and custom variants. If not given on the provider, the app-wide settings registered with defineAppearance are returned.
Examples
DENSITY_SCALE
constantSpacing factors of the built-in levels.
densityFactor
functionSpacing factor of the density (0.5–2). 1 for invalid values.
densityName
functionBuilt-in level closest to the factor. Components with their own density setting (e.g. DataGrid) pick their defaults from it.
getDensityStyle
functionDensity style for the page root (:root). UIProvider renders it as a <style> element at the root, so server rendering gets the right spacing and portals (Dialog, Popover…) are covered too.
Use this text if you want to put it in your own <head> (e.g. for CSP).
Examples
useDensityFactor
functionSpacing factor of the current density (UIProviderProps.density). Since shrinking is not applied on touch screens, it returns at least 1 there; the same rule as the CSS side. Use it in your own components that compute row height in JavaScript.
Examples
Props the link component given to UIProvider must accept. Next.js Link accepts all of them.
Extends: ComponentProps<"a">
| Name | Type | Description |
|---|---|---|
href | string | Address to go to. |
Props the image component given to UIProvider must accept. The component must fully cover a positioned box (size-full); sizes tells the rendered width (e.g. "240px"). Ready adapter for Next.js: @yasinsensoy/web/next → <UIProvider optimizeImages>.
Extends: Omit<ComponentProps<"img">, "src" | "alt">
| Name | Type | Description |
|---|---|---|
src | string | Image URL. |
alt | string | Alternative text (empty for decorative images). |
UIContextValue
interfaceReturn value of the useUI hook.
| Name | Type | Default | Description |
|---|---|---|---|
link | ComponentType<LinkComponentProps> | "a" | Component used by components that take href (e.g. Button) to render links. Defaults to a plain <a>. | |
image | ComponentType<ImageComponentProps> | "img" | Component used by image-rendering components (e.g. Gallery). Defaults to a plain <img>. | |
messages | Messages | Dictionary: the app's texts and overrides of library texts in the ui namespace. See UIProviderProps.messages, useT. | |
icons | IconRegistry | Library that icon="name" icons are resolved from. | |
locale | string | "tr-TR" | UI locale (BCP 47); used by translation (useT), plural rules and number, currency and date formatting. |
currency | string | "TRY" | Currency used for currency formatting (ISO 4217). |
scrollbar | ScrollbarMode | Scrollbar style. See UIProviderProps.scrollbar. | |
appearance? | AppearanceConfig | undefined | Appearance settings: component defaults, custom effects and custom variants. undefined if not given on the provider; the app-wide registry (getAppearance) is used then. Read it with useAppearance. See UIProviderProps.appearance. | |
floatingLabel? | FloatingLabel | undefined | Default floating label setting for *Field components. See UIProviderProps.floatingLabel. | |
errorDisplay? | ErrorDisplay | undefined | Default error display mode for fields. See UIProviderProps.errorDisplay. | |
density? | Density | undefined | UI density. Spacing is applied via CSS; this value is read by components that compute row height in JavaScript (virtualized lists, DataGrid, TreeView). See UIProviderProps.density. | |
usePathname | () => string | null | Hook returning the current page's path (/products/phone). Used by components that mark the active link (e.g. Sidebar). See UIProviderProps.usePathname. |
ScrollbarMode
typeScrollbar style.
"overlay": A thin bar over the content that appears only while scrolling; takes no width (like mobile and macOS)."native": The browser's own scrollbar.
DensityName
typeBuilt-in density levels.
"compact": dense; desktop admin panels, tables (factor 0.8; default button 40 → 32 px)."standard": default (factor 1)."comfortable": roomy; touch-heavy or low-content screens (factor 1.15; button 40 → 46 px).
Density
typeDensity: a built-in level or a spacing factor directly (e.g. 0.9). The factor is clamped to 0.5–2.
UIMessages
interfaceThe library components' own texts. They live in the dictionary's ui namespace and are overridden per locale: <UIProvider messages={{ ui: { cancel: "Dismiss" } }}>. Turkish is the default (trMessages); enMessages is the ready English set. See createI18n.
| Name | Type | Default | Description |
|---|---|---|---|
close | string | "Kapat" | Screen reader name of the close (×) button. |
cancel | string | "İptal" | Cancel button. |
confirm | string | "Onayla" | Confirm button. |
loading | string | "Yükleniyor" | Screen reader text of the loading indicator. |
info | string | "Bilgi" | Screen reader name of the info (ⓘ) icon. See InfoTip. |
select | string | "Seçiniz" | Default placeholder of the select box. |
search | string | "Ara…" | Placeholder of the search box. |
noResults | string | "Sonuç bulunamadı" | When a search returns nothing. |
noOptions | string | "Seçenek yok" | When there are no options. |
loadError | string | "Yüklenemedi" | When loading fails. |
retry | string | "Tekrar dene" | Retry button. |
clear | string | "Temizle" | Screen reader name of the clear-selection button. |
remove | string | "Kaldır" | Screen reader name of the tag remove button in multi-select. |
addCustom | string | "Eklemek için Enter" | In Autocomplete, says the typed text can be added with Enter. |
code | string | "Kod" | Screen reader name of a code block without a title. |
copy | string | "Kopyala" | Copy button in a code block. |
copied | string | "Kopyalandı" | When copying succeeds. |
expand | string | "Tümünü göster" | Button that expands collapsed code in a code block. |
collapse | string | "Daralt" | Button that collapses the code block again. |
unchangedLines | string | "değişmeyen satır" | Button of a folded region in a code diff; preceded by the line count ("12 unchanged lines"). |
fileSelect | string | "Dosya seç" | Main button of the file upload area. |
fileDrag | string | "ya da sürükleyip bırak" | Drag and drop hint in the file upload area. |
fileDrop | string | "Eklemek için bırak" | While dragging over the file area. |
fileNone | string | "Dosya seçilmedi" | Inline file field with nothing selected. |
fileCount | string | "{count} dosya" | When several files are selected; {count} is replaced by the number. |
fileAdd | string | "Ekle" | Add box in the gallery. |
fileReplace | string | "Değiştir" | Button that replaces the file in a single-file field. |
fileEdit | string | "Düzenle" | Button that opens an image or video in the editor. |
filePreview | string | "Önizle" | Button that opens the preview window. |
fileQueued | string | "Sırada" | File waiting in the upload queue. |
fileFailed | string | "Yüklenemedi" | When an upload fails. |
fileImages | string | "Resimler" | All images in the accept hint. |
fileMaxSize | string | "En fazla {size}" | Maximum size in the hint; {size} is replaced by the size. |
fileMaxCount | string | "En fazla {count} dosya" | Maximum file count in the hint; {count} is replaced by the number. |
fileTypeError | string | "Bu dosya türü kabul edilmiyor" | File of a type that is not accepted. |
fileSizeError | string | "Dosya çok büyük (en fazla {size})" | File too large; {size} is replaced by the limit. |
fileMinSizeError | string | "Dosya çok küçük (en az {size})" | File too small; {size} is replaced by the limit. |
fileCountError | string | "En fazla {count} dosya seçilebilir" | When the count limit is exceeded; {count} is replaced by the limit. |
fileDuplicateError | string | "Bu dosya zaten ekli" | When the same file is added twice. |
filePending | string | "Dosyaların yüklenmesi bekleniyor" | When the form is submitted before uploads finish. |
previous | string | "Önceki" | Previous file in the preview. |
next | string | "Sonraki" | Next file in the preview. |
calendar | string | "Takvim" | Screen reader name of the calendar. |
previousMonth | string | "Önceki ay" | Previous month button in the calendar. |
nextMonth | string | "Sonraki ay" | Next month button in the calendar. |
previousYears | string | "Önceki yıllar" | Previous/next years button in month and year views. |
nextYears | string | "Sonraki yıllar" | |
chooseMonthYear | string | "Ay ve yıl seç" | Month/year picker button in the calendar header. |
weekShort | string | "Hf" | Header of the week number column. |
weekNumber | string | "{week}. hafta" | Screen reader text of the week number; {week} is replaced by the number. |
today | string | "Bugün" | Today button and preset. |
now | string | "Şimdi" | Current time button in the time picker. |
openCalendar | string | "Takvimi aç" | Calendar button in a date field. |
openTime | string | "Saat seç" | Time button in a time field. |
hour | string | "Saat" | Hour column. |
minute | string | "Dakika" | Minute column. |
rangeStart | string | "Başlangıç" | Start of a date range. |
rangeEnd | string | "Bitiş" | End of a date range. |
rangeDays | string | "{count} gün" | Length of the selected range; {count} is replaced by the number of days. |
dayLetter | string | "G" | Day letter in the date placeholder (DD.MM.YYYY). |
monthLetter | string | "A" | Month letter in the date placeholder. |
yearLetter | string | "Y" | Year letter in the date placeholder. |
timePlaceholder | string | "SS:DD" | Time placeholder. |
yesterday | string | "Dün" | Preset: yesterday. |
tomorrow | string | "Yarın" | Preset: tomorrow. |
last7Days | string | "Son 7 gün" | Preset: last 7 days. |
last30Days | string | "Son 30 gün" | Preset: last 30 days. |
thisWeek | string | "Bu hafta" | Preset: this week. |
thisMonth | string | "Bu ay" | Preset: this month. |
lastMonth | string | "Geçen ay" | Preset: last month. |
thisYear | string | "Bu yıl" | Preset: this year. |
installTitle | string | "Uygulamayı yükle" | Title of the install prompt and text of InstallButton. |
installDescription | string | "Ana ekrana ekle; tek dokunuşla, tam ekran açılsın." | Description of the install prompt. |
install | string | "Yükle" | Install button in the install prompt. |
installHow | string | "Nasıl yüklenir?" | Button that opens the steps on browsers that install manually (iOS, macOS Safari). |
notNow | string | "Şimdi değil" | Button that postpones the prompt. |
installGuideTitle | string | "Ana ekrana ekle" | Title of the install steps window. |
gotIt | string | "Anladım" | Button that closes the install steps window. |
installGuideDescription | string | "Birkaç dokunuşla uygulama gibi kullan." | Description of the install steps window. |
installIosShare | string | "Tarayıcının Paylaş düğmesine dokun" | iOS step 1. |
installIosShareHint | string | "Safari'de adres çubuğunda ya da ••• menüsünde bulunur." | iOS step 1 hint. |
installIosAdd | string | "“Ana Ekrana Ekle”yi seç" | iOS step 2. |
installIosAddHint | string | "Görmüyorsan listeyi aşağı kaydır." | iOS step 2 hint. |
installIosConfirm | string | "Sağ üstteki “Ekle”ye dokun" | iOS step 3. |
installMacFile | string | "Menü çubuğunda “Dosya”yı aç" | macOS Safari step 1. |
installMacDock | string | "“Dock'a Ekle”yi seç ve onayla" | macOS Safari step 2. |
installAndroidMenu | string | "Tarayıcı menüsünü (⋮) aç" | Android step 1. |
installAndroidAdd | string | "“Uygulamayı yükle” ya da “Ana ekrana ekle”yi seç" | Android step 2. |
installDesktopIcon | string | "Adres çubuğundaki yükleme simgesine tıkla" | Desktop step 1. |
installDesktopConfirm | string | "Açılan pencerede “Yükle”yi onayla" | Desktop step 2. |
updateTitle | string | "Yeni sürüm hazır" | Title of the update prompt. |
updateDescription | string | "Son değişiklikler için sayfayı yenile." | Description of the update prompt. |
reload | string | "Yenile" | Button that applies the update. |
offlineReady | string | "Uygulama çevrim dışı kullanıma hazır" | When the service worker is installed for the first time. |
offline | string | "Çevrim dışısın" | When offline. |
backOnline | string | "Yeniden çevrim içisin" | When the connection comes back. |
share | string | "Paylaş" | Share button. |
linkCopied | string | "Bağlantı kopyalandı" | When sharing is unsupported and the link was copied. |
shareFailed | string | "Paylaşılamadı" | When sharing and copying fail. |
increment | string | "Artır" | Button that increments the value by one step in a number field. |
decrement | string | "Azalt" | Button that decrements the value by one step in a number field. |
showPassword | string | "Şifreyi göster" | Button that shows the password in a password field. |
hidePassword | string | "Şifreyi gizle" | The same button while the password is shown. |
holdToShowPassword | string | "Göstermek için basılı tut" | Button hint in press-and-hold mode. |
maskIncomplete | string | "Lütfen alanı eksiksiz doldurun." | Error shown when a masked field (Input mask) is incomplete. |
maskInvalid | string | "Girilen değer geçerli değil." | When a masked field's value fails validation (e.g. IBAN or Turkish national ID checksum). |
chartEmpty | string | "Gösterilecek veri yok" | When the chart has no data to show. |
chartTotal | string | "Toplam" | Total in the chart tooltip and donut center. |
chartOther | string | "Diğer" | The slice small slices are grouped into in a pie chart. |
chartHint | string | "Değerler arasında ok tuşlarıyla gezin." | Screen reader hint of the chart. |
chartZoomIn | string | "Yakınlaştır" | Button that zooms the chart in. |
chartZoomOut | string | "Uzaklaştır" | Button that zooms the chart out. |
chartZoomReset | string | "Yakınlaştırmayı sıfırla" | Button that resets zoom. |
chartZoomHint | string | "Yakınlaştırmak için {key} + tekerlek" | Hint shown when the wheel only zooms with a modifier key; {key} is replaced by the key (Ctrl, ⌘ on Mac). |
chartZoomKeys | string | "Artı ve eksi tuşlarıyla yakınlaştırın, 0 ile sıfırlayın." | Screen reader hint of a zoomable chart. |
chartRange | string | "Görünen aralık" | Visible section in the range navigator. |
chartRangeStart | string | "Aralığın başı" | Start handle in the range navigator. |
chartRangeEnd | string | "Aralığın sonu" | End handle in the range navigator. |
hiddenPages | string | "Gizlenen sayfalar" | (…) button that reveals hidden pages in the breadcrumb. |
otherPages | string | "Diğer sayfalar" | Button that opens the sibling-pages menu of a page in the breadcrumb. |
navigation | string | "Ana menü" | Screen reader name of the sidebar. |
menu | string | "Menü" | Title of the mobile menu window. |
openMenu | string | "Menüyü aç" | Menu button in the mobile top bar. |
more | string | "Daha fazla" | Button that opens overflow items in the bottom navigation bar. |
collapseSidebar | string | "Kenar çubuğunu daralt" | Button that collapses the sidebar into an icon rail. |
expandSidebar | string | "Kenar çubuğunu genişlet" | Button that expands the collapsed sidebar. |
otpResend | string | "Kodu tekrar gönder" | Link in the code field that requests a new code. |
otpResendIn | string | "{time} sonra tekrar gönderebilirsin" | Time left until resend in the code field; {time} is replaced by the duration (0:42). |
sliderStart | string | "Başlangıç" | Screen reader name of the first handle in a range slider. |
sliderEnd | string | "Bitiş" | Screen reader name of the last handle in a range slider. |
play | string | "Oynat" | Video play button. |
pause | string | "Duraklat" | Video pause button. |
mute | string | "Sesi kapat" | Mute button. |
unmute | string | "Sesi aç" | Unmute button. |
volume | string | "Ses düzeyi" | Volume slider. |
seek | string | "Video konumu" | Video seek bar. |
fullscreen | string | "Tam ekran" | Enter fullscreen button. |
exitFullscreen | string | "Tam ekrandan çık" | Exit fullscreen button. |
pictureInPicture | string | "Resim içinde resim" | Picture-in-picture button. |
captions | string | "Altyazı" | Captions button and menu title. |
captionsOff | string | "Kapalı" | Off option in the captions menu. |
settings | string | "Ayarlar" | Video settings button. |
playbackSpeed | string | "Oynatma hızı" | Playback speed group in settings. |
normalSpeed | string | "Normal" | 1× in playback speed. |
quality | string | "Kalite" | Quality group in the settings. |
seekForward | string | "{seconds} sn ileri" | Seek forward; {seconds} is replaced by the seconds. |
seekBackward | string | "{seconds} sn geri" | Seek backward; {seconds} is replaced by the seconds. |
videoError | string | "Video oynatılamadı" | When the video cannot be opened. |
galleryEmpty | string | "Gösterilecek öğe yok" | When the gallery has no items to show. |
gallery | string | "Galeri" | Screen reader name of the gallery. |
gallerySelected | string | "{count} seçildi" | Selected count in the selection bar; {count} is replaced by the number. |
gallerySelect | string | "Seç" | Button that enters selection mode and the item select box. |
galleryPreview | string | "Büyük gör" | Button that enlarges an item in selection mode. |
selectAll | string | "Tümünü seç" | Select all button. |
deselectAll | string | "Seçimi kaldır" | Clear selection button. |
loadMore | string | "Daha fazla göster" | Button that loads the next page. |
pages | string | "Sayfalar" | Name of the page buttons group. |
page | string | "{page}. sayfa" | Page button; {page} is replaced by the number. |
previousPage | string | "Önceki sayfa" | Previous page button in pagination. |
nextPage | string | "Sonraki sayfa" | Next page button in pagination. |
firstPage | string | "İlk sayfa" | First page button in pagination. |
lastPage | string | "Son sayfa" | Last page button in pagination. |
pageStatus | string | "Sayfa {page} / {count}" | Page status; {page} and {count} are replaced by numbers. |
pageStatusUnknown | string | "Sayfa {page}" | Page status when the total is unknown. |
perPage | string | "Sayfa başına" | Label of the page size choice. |
goToPage | string | "Sayfaya git" | Label of the page choice and "go to page" field. |
jumpForward | string | "{count} sayfa ileri" | Jump forward from the (…) gap; {count} is replaced by the number. |
jumpBackward | string | "{count} sayfa geri" | Jump backward from the (…) gap. |
paginationSummary | string | "{total} kayıttan {start}–{end} arası" | Pagination summary; {start}, {end}, {total} are replaced by numbers. |
paginationRange | string | "{start}–{end} arası" | Summary when the total is unknown. |
paginationEmpty | string | "Kayıt yok" | Summary when there are no records. |
shownOf | string | "{total} kayıttan {count} tanesi gösteriliyor" | Count shown in the "Show more" view; {count} and {total} are replaced by numbers. |
download | string | "İndir" | Download button in fullscreen view. |
slideshow | string | "Slayt gösterisi" | Button that starts the slideshow. |
stopSlideshow | string | "Slaytı durdur" | Button that stops the slideshow. |
video | string | "Video" | Video badge and video type in the gallery. |
galleryPosition | string | "{index} / {count}" | Position in fullscreen view; {index} and {count} are replaced by numbers. |
imageError | string | "Resim yüklenemedi" | When an image fails to load. |
uploading | string | "Yükleniyor" | Item being uploaded to the server. |
processing | string | "İşleniyor" | Item being processed on the server (e.g. video transcoding). |
uploadFailed | string | "Yüklenemedi" | Item whose upload or processing failed. |
treeEmpty | string | "Öğe yok" | When the tree has no items. |
treeEmptyFolder | string | "Boş" | Under an expanded but empty node in the tree. |
treeMatches | string | "{count} sonuç" | Count found in tree search; {count} is replaced by the number. |
treeDragCount | string | "{count} öğe" | Number of dragged items; {count} is replaced by the number. |
treeMoved | string | "{label} taşındı" | Announcement after a move; {label} is replaced by the name. |
treeRename | string | "Yeni ad" | Name of the rename box in the tree. |
treeRenameEmpty | string | "Ad boş olamaz" | Empty name when renaming. |
moreActions | string | "Diğer eylemler" | Action menu button on a row. |
dragHandle | string | "Sürükle" | Drag handle on touch. |
colorPick | string | "Renk seç" | Screen reader name of the color picker and panel button. |
colorArea | string | "Renk alanı" | Saturation/brightness area in the color picker. |
colorSaturation | string | "Doygunluk" | Horizontal axis of the color area. |
colorBrightness | string | "Parlaklık" | Vertical axis of the color area. |
colorHue | string | "Ton" | Hue slider. |
colorAlpha | string | "Saydamlık" | Opacity slider. |
colorValue | string | "Renk değeri" | Color text box. |
colorFormat | string | "Renk biçimi: {format}" | Format switch button; {format} is replaced by the format name. |
colorEyeDropper | string | "Ekrandan renk al" | Pick color from screen (eyedropper) button. |
colorSwatches | string | "Hazır renkler" | Preset colors. |
colorRecent | string | "Son kullanılanlar" | Recently used colors. |
colorNone | string | "Renk yok" | When no color is selected. |
carousel | string | "Karusel" | Screen reader name of the carousel. |
carouselSlide | string | "slayt" | Role description of a slide in the carousel (screen reader). |
carouselGoTo | string | "{index}. slayta git" | Dot that goes to a slide in the carousel; {index} is replaced by the number. |
commandPalette | string | "Komut paleti" | Screen reader name of the command palette. |
commandPlaceholder | string | "Komut ya da arama yazın…" | Search box of the command palette. |
commandRecent | string | "Son kullanılanlar" | Recently run group in the command palette. |
commandNavigate | string | "gezin" | Arrow keys hint in the command palette footer. |
commandRun | string | "seç" | Enter hint in the command palette footer. |
commandBack | string | "Geri" | Going back to the parent page in the command palette. |
ratingValue | string | "{value} / {max}" | Screen reader text of the rating; {value} and {max} are replaced. See Rating. |
tagDuplicate | string | "Bu etiket zaten ekli" | When the same tag is added again in the tag input. |
tagLimit | string | "En fazla {count} etiket eklenebilir" | When the tag limit is reached; {count} is replaced by the limit. |
tagTooLong | string | "Etiket en fazla {count} karakter olabilir" | When a tag is too long; {count} is replaced by the limit. |
tagInvalid | string | "Geçersiz etiket" | When a tag fails the rule (pattern, validate). |
tagNotInList | string | "Listeden bir öğe seç" | Text not in the list in a tag input limited to suggestions. |
tagEditHint | string | "Düzenlemek için Enter" | Edit hint on a tag (screen reader). |
tagAdded | string | "{label} eklendi" | Announced when a tag is added or removed; {label} is replaced by the tag. |
tagRemoved | string | "{label} kaldırıldı" | See tagAdded. |
steps | string | "Adımlar" | Screen reader name of the step indicator. |
stepOf | string | "Adım {index} / {count}" | Step counter on narrow screens; {index} and {count} are replaced by numbers. |
stepNext | string | "Sonraki" | Precedes the next step on narrow screens. |
stepOptional | string | "İsteğe bağlı" | Under an optional step. |
stepComplete | string | "tamamlandı" | Screen reader status of a completed step. |
stepError | string | "hatalı" | Screen reader status of a step with an error. |
stepWarning | string | "uyarı var" | Screen reader status of a step with a warning. |
stepSkipped | string | "atlandı" | Screen reader status of a skipped step. |
wizardBack | string | "Geri" | Button that goes back to the previous step in the wizard. |
wizardNext | string | "İleri" | Button that moves to the next step in the wizard. |
wizardFinish | string | "Tamamla" | Submit button on the wizard's last step. |
wizardSkip | string | "Atla" | Button that skips an optional step. |
emptyTitle | string | "Henüz içerik yok" | EmptyState empty title. |
emptySearchTitle | string | "Sonuç bulunamadı" | EmptyState search title. |
emptySearchDescription | string | "Aramanı ya da filtreleri değiştirip tekrar dene." | EmptyState search description. |
emptyErrorTitle | string | "Bir şeyler ters gitti" | EmptyState error title. |
emptyErrorDescription | string | "İçerik yüklenemedi. Biraz sonra tekrar dene." | EmptyState error description. |
emptyOfflineTitle | string | "İnternet bağlantısı yok" | EmptyState offline title. |
emptyOfflineDescription | string | "Bağlantın gelince kaldığın yerden devam edebilirsin." | EmptyState offline description. |
emptyNoAccessTitle | string | "Bu içeriği görme yetkin yok" | EmptyState noAccess title. |
emptyNoAccessDescription | string | "Erişim için yöneticine başvur." | EmptyState noAccess description. |
statIncrease | string | "{value} artış" | Screen reader text of a Stat increase; {value} is replaced by the rate. |
statDecrease | string | "{value} azalış" | Screen reader text of a Stat decrease. |
statNoChange | string | "Değişim yok" | When a Stat has no change. |
showMore | string | "Devamını göster" | Expand button in Collapsible collapsedHeight mode. |
showLess | string | "Daha az göster" | Collapse button in Collapsible collapsedHeight mode. |
sheetHandle | string | "Panel boyutu" | Screen reader name of the Sheet handle. |
endOfList | string | "Hepsi bu kadar" | End of the InfiniteScroll list (endMessage). |
signatureLabel | string | "İmza alanı" | SignaturePad screen reader name. |
signatureHint | string | "Buraya imzala" | SignaturePad hint when empty. |
undo | string | "Geri al" | Undo button (e.g. SignaturePad). |
redo | string | "Yinele" | Redo button (e.g. SignaturePad). |
countryPriority | string | "Sık kullanılanlar" | Title of the CountrySelect featured countries group. |
countrySearch | string | "Ülke ara" | CountrySelect search box placeholder. |
phoneCountry | string | "Ülke kodu" | Accessible name of the PhoneInput country picker. |
phoneInvalid | string | "Geçerli bir telefon numarası gir" | When the PhoneInput number is too short or too long. |
formSubmit | string | "Gönder" | SchemaForm submit button. |
formReset | string | "Temizle" | SchemaForm reset button. |
chooseYear | string | "Yıl seç" | Year button in the MonthCalendar header. |
previousYear | string | "Önceki yıl" | MonthCalendar previous year button. |
nextYear | string | "Sonraki yıl" | MonthCalendar next year button. |
openMonthPicker | string | "Ay seçiciyi aç" | MonthPicker panel button. |
openYearPicker | string | "Yıl seçiciyi aç" | YearPicker panel button. |
tableOfContents | string | "Bu sayfada" | TableOfContents title. |
backToTop | string | "Başa dön" | Name of the BackToTop button. |
cascaderBack | string | "Üst seviyeye dön" | Cascader button that goes back up a level on mobile. |
sortableHint | string | "Taşımak için Boşluk'a bas; ok tuşlarıyla yerini değiştir, Boşluk ile bırak, Esc ile vazgeç. Alt ve ok tuşu tek adımda taşır." | Keyboard hint of a sortable item (screen reader). See SortableList. |
sortablePickedUp | string | "{label} alındı. Sıra {position} / {total}." | Item picked up; {label}, {position}, {total} are replaced. |
sortableOver | string | "Sıra {position} / {total}" | New position of the moved item; {position}, {total} are replaced. |
sortableDropped | string | "{label} bırakıldı. Yeni sıra {position} / {total}." | Item dropped; {label}, {position}, {total} are replaced. |
sortableCancelled | string | "Taşıma iptal edildi. {label} yerinde kaldı." | Move cancelled; {label} is replaced. |
sortableTouchHint | string | "Taşımak için basılı tutup sürükle ya da işlemlerden yukarı/aşağı taşı." | Screen reader hint of a sortable item on touch (native). |
moveUp | string | "Yukarı taşı" | Move up action (screen reader). |
moveDown | string | "Aşağı taşı" | Move down action (screen reader). |
fieldArrayAdd | string | "Ekle" | FieldArray add row button. |
fieldArrayRemove | string | "{row} sil" | Name of the FieldArray delete row button; {row} is replaced by the row name. |
fieldArrayDuplicate | string | "{row} çoğalt" | Name of the FieldArray duplicate row button; {row} is replaced by the row name. |
fieldArrayRow | string | "{position}. satır" | Default name of a FieldArray row; {position} is replaced by the position. |
fieldArrayAdded | string | "{row} eklendi" | Announced when a row is added; {row} is replaced. |
fieldArrayRemoved | string | "{row} silindi" | Announced when a row is deleted; {row} is replaced. |
fieldArrayEmpty | string | "Henüz satır yok" | When FieldArray has no rows. |
fieldArrayMax | string | "En fazla {max} satır eklenebilir" | Add button hint when FieldArray reaches its row limit; {max} is replaced. |
countdownEnded | string | "Süre doldu" | Announced once to screen readers when Countdown ends. |
transferSource | string | "Kaynak" | Default title of the Transfer left list. |
transferTarget | string | "Seçilenler" | Default title of the Transfer right list. |
transferEmpty | string | "Öğe yok" | When a Transfer list is empty. |
transferAdd | string | "Seçilenleri ekle" | Transfer button that moves checked items right. |
transferAddAll | string | "Tümünü ekle" | Transfer button that moves all items right. |
transferRemove | string | "Seçilenleri çıkar" | Transfer button that moves checked items left. |
transferRemoveAll | string | "Tümünü çıkar" | Transfer button that moves all items left. |
transferMoveUp | string | "Yukarı taşı" | Transfer orderable reorder button. |
transferMoveDown | string | "Aşağı taşı" | Transfer orderable reorder button. |
transferMoved | string | "{count} öğe taşındı" | Announcement after a move; {count} is replaced. |
transferMax | string | "En fazla {max} öğe seçilebilir" | When the Transfer max limit is reached; {max} is replaced. |
transferHint | string | "Boşluk ile işaretle, Enter ile karşı listeye taşı, Ctrl+A ile tümünü seç." | Keyboard hint of the Transfer list (screen reader). |
notifications | string | "Bildirimler" | NotificationCenter title and bell button name. |
notificationsAll | string | "Tümü" | The "All" tab of NotificationCenter. |
notificationsUnread | string | "Okunmamış" | NotificationCenter "Unread" tab and unread dot. |
notificationsMarkAllRead | string | "Tümünü okundu işaretle" | NotificationCenter mark all as read button. |
notificationsMarkRead | string | "Okundu işaretle" | NotificationCenter mark as read button on a row. |
notificationsClear | string | "Tümünü temizle" | NotificationCenter clear all button. |
notificationsEmpty | string | "Henüz bildirim yok" | NotificationCenter when there are no notifications. |
notificationsEmptyUnread | string | "Okunmamış bildirim yok" | When the NotificationCenter unread tab is empty. |
notificationsUnreadCount | string | "{count} okunmamış" | Unread count in the bell button's screen reader suffix; {count} is replaced. |
notificationsNew | string | "Yeni bildirim: {title}" | Announced when a new notification arrives; {title} is replaced. |
jsonView | string | "JSON" | Screen reader name of the JsonView tree. |
jsonExpandAll | string | "Tümünü aç" | JsonView expand all button. |
jsonCollapseAll | string | "Tümünü kapat" | JsonView collapse all button. |
jsonCopyAll | string | "JSON'u kopyala" | JsonView copy all data button. |
jsonCopyValue | string | "Değeri kopyala" | JsonView copy row value button. |
jsonCopyPath | string | "Yolu kopyala" | JsonView copy row path button. |
jsonKeys | string | "{count} anahtar" | JsonView key count of an object; {count} is replaced. |
jsonItems | string | "{count} öğe" | JsonView item count of an array; {count} is replaced. |
jsonMoreChars | string | "+{count} karakter" | JsonView button that expands truncated text; {count} is replaced. |
jsonInvalid | string | "Geçersiz JSON" | When JsonView cannot parse the text. |
navigationViewAll | string | "Tümünü gör" | "See all" link in a NavigationMenu mobile group. |
breadcrumb | string | "Sayfa yolu" | Screen reader name of the Breadcrumb navigation. |
tableEmpty | string | "Kayıt yok" | Table with no rows. |
timelineEmpty | string | "Henüz kayıt yok" | Timeline with no entries. |
timelineDone | string | "Tamamlandı" | Screen reader text of a Timeline entry with the "done" status. |
timelineActive | string | "Şu anki adım" | Screen reader text of a Timeline entry with the "active" status. |
timelinePending | string | "Bekliyor" | Screen reader text of a Timeline entry with the "pending" status. |
timelineShowMore | string | "{count} kayıt daha göster" | Timeline button revealing hidden entries; {count} is replaced. |
timelineGroupCount | string | "{count} kayıt" | Entry count in a collapsible Timeline group heading; {count} is replaced. |
tourNext | string | "İleri" | Tour next button. |
tourBack | string | "Geri" | Tour back button. |
tourDone | string | "Bitir" | Tour button on the last step. |
tourSkip | string | "Geç" | Tour button in place of Back on the first step. |
tourClose | string | "Turu kapat" | Tour close (×) button. |
colorNames | ColorNameMessages | Names of the built-in ColorPicker swatches. | |
kanban | KanbanMessages | Kanban texts. | |
dataGrid | DataGridMessages | DataGrid texts. | |
eventCalendar | EventCalendarMessages | EventCalendar texts. | |
richText | RichTextMessages | RichTextEditor texts. | |
mediaEditor | MediaEditorMessages | MediaEditor texts. | |
chat | ChatMessages | Chat texts. |
UIProviderProps
interfaceProps of the UIProvider component.
| Name | Type | Default | Description |
|---|---|---|---|
children? | ReactNode | The app itself. | |
link? | ComponentType<LinkComponentProps> | Component used for in-site links. In Next.js pass Link, so components such as <Button href="/x"> navigate without a page reload. Defaults to a plain <a>. | |
image? | ComponentType<ImageComponentProps> | Component used by image-rendering components (Gallery, Lightbox); e.g. a CDN component that resizes images. Defaults to a plain <img>. In Next.js, the optimizeImages prop of the @yasinsensoy/web/next provider wires up next/image. | |
messages? | Messages | The locale's dictionary: the app's texts (read with useT) and library texts ("Close", "Cancel"…) in the ui namespace. Provide only the library texts you want to change; the rest keep the Turkish defaults. Ready English set: ui: enMessages. Being a plain object, it can be passed from a server-component layout: messages={await i18n.load(lang)} (createI18n). In nested providers dictionaries are deep-merged. confirm dialogs are rendered at the root provider and use its dictionary; give the locale to the provider in the root layout. The whole dictionary is sent to the client; in large apps pass only the namespaces client components use, and let server components translate themselves with i18n.getT(). | |
icons? | IconRegistry | Icons used as icon="name". Pass an object of components from any icon library (lucide-react, phosphor, heroicons, react-icons…) or your own SVG components. Include only the icons you use so the bundle stays small. In nested providers icons are merged. Extend the Register interface to type-check the names. | |
locale? | string | "tr-TR" | UI locale (BCP 47), e.g. "en", "en-US". Used by translation (useT), plural rules and number, currency and date formatting. |
currency? | string | "TRY" | Currency (ISO 4217), e.g. "USD". |
scrollbar? | ScrollbarMode | "overlay" | Scrollbar style; applies to the page itself and the library's scroll areas (ScrollArea, Dialog, Sheet, Table). With "overlay", the classic bar on Windows and Linux is hidden; instead a thin bar is drawn over the content that appears only while scrolling or when the pointer nears the edge. Because it takes no width the layout does not shift, and content does not jump sideways when a modal locks the page. The same bar is used on mobile; only in high contrast mode does the browser's bar remain. If you want it on your own overflow-auto elements, wrap them in ScrollArea. The page bar follows the document (<html>) scroll; if your app scrolls <body> or another container, make that a ScrollArea. |
usePathname? | () => string | null | Hook returning the current page's path. Components such as Sidebar use it to find the active link. The @yasinsensoy/web/next provider wires Next.js's usePathname itself. Pass it for other routers; e.g. React Router: () => useLocation().pathname. Defaults to location.pathname (updated only on full page navigations and back/forward). Must be the same function on every render; define it outside the component. | |
appearance? | AppearanceConfig | The app's appearance in one place: each component's default variant, effect, tone, size and shape (defaults), your own effects (effects) and your own variants (variants). A prop given to the component always wins. Define it with defineAppearance; names are type-checked via Register. In nested providers settings are merged. The root provider's settings are also written to the app-wide registry; server components (Card, Badge) read them from there. In the Next.js App Router, import the settings file (defineAppearance) in the root layout so server components see it too. | |
floatingLabel? | FloatingLabel | false | Label placement for every TextField in the app, in one place. The field's own floatingLabel prop overrides it. - false: label above the field (classic). - true: floating label; on the top border (outline) or inside the box (filled, underline, ghost) depending on the variant. - "border" / "inside": floating label, in that position for every variant. The bare Input is a server component and cannot read the provider; use its label and floatingLabel props. |
errorDisplay? | ErrorDisplay | "message" | Error display mode for every form field in the app (TextField, SelectField, CheckboxField, DateField…), in one place. Form errorDisplay and the field's own errorDisplay override it. - "message": message below the field; content below shifts when an error appears. - "reserve": the message line is reserved up front; nothing shifts. - "icon" / "icon-end": red icon left/right of the label, message in a tooltip; the field's size never changes. See ErrorDisplay. |
density? | Density | "standard" | UI density: "compact" (dense), "standard" or "comfortable" (roomy); or a spacing factor directly (e.g. 0.9). Multiplies the Tailwind spacing unit (--spacing) in scope; the height, padding and gaps of all components (and your own Tailwind layout in scope) change proportionally. Font size does not change. Components that compute row height in JavaScript (Select list, CommandPalette, TreeView, DataGrid) follow it too. Shrinking is not applied on touch screens. On the root provider it is applied to the whole page (portals included) via a <style>; it is correct in server rendering too. In a nested provider, content is wrapped in a display: contents data-density container (Dialog/Popover opened from this scope use the page's density). For a section in a server component the data-density="compact" attribute is enough. |
licenseKey? | string | License key. The library runs free, without a key, in development (when NODE_ENV is not production, or on localhost). In production it requires a valid key; if it is missing, invalid, or this version was released after the license's update window, the page is locked behind a non-dismissable "License required" screen. The key is verified offline (signature check; no network request). Give it once to the root provider; reading it from an environment variable is easiest. If you do not use the provider, see setLicenseKey. | |
nonce? | string | Content Security Policy (CSP) nonce; added to the <style> element rendered for density. |