U
UIX
v0.1
Docs
Components
GitHub ↗
(dir = dir === 'ltr' ? 'rtl' : 'ltr')} > {#if dir === 'ltr'}
{:else}
{/if}
{language.toUpperCase()}
Language
{#each Object.entries(LANGUAGE_LABELS) as [code, label]}
(language = code as Language)} >
{label}
{code.toUpperCase()}
{/each}
Formats
Currency
{#each Object.entries(CURRENCY_LABELS) as [code, label]}
(currency = code as Currency)} >
{label}
{code}
{/each}
Units
{#each Object.entries(UNIT_LABELS) as [code, label]}
(units = code as UnitSystem)} >
{label}
{code === 'metric' ? 'KM · KG · °C' : 'MI · LB · °F'}
{/each}
Numbers
{#each Object.entries(NUMBER_LABELS) as [code, label]}
(numberFormat = code as NumberFormat)} >
{label}
{/each}
Semantics
Perceptual channels
Sound
{soundOn ? 'on' : 'off'}
Motion
{motionOn ? 'on' : 'off'}
Haptic
{hapticOn ? 'on' : 'off'}
(theme = theme === 'light' ? 'dark' : 'light')} > {#if theme === 'light'}
{:else}
{/if}
{@render children?.()}