Sigta UI · Kit
Money
Display — minor units, formatted per currency
1.234,56 kr.
€1.234,56
$1,234.56
£1,234.56
Input is minor units (øre / cents). Known currencies carry symbol, position and separators; override any piece or pass an unknown code (rendered as a trailing symbol).
Source
<div class="flex flex-col gap-2 font-head text-2xl">
<div><sigta:money :minor="123456" currency="DKK" /></div>
<div><sigta:money :minor="123456" currency="EUR" /></div>
<div><sigta:money :minor="123456" currency="USD" /></div>
<div><sigta:money :minor="123456" currency="GBP" /></div>
</div>
<p class="mt-4 max-w-[60ch] font-mono text-[0.7rem] text-graphite">
Input is minor units (øre / cents). Known currencies carry symbol, position and separators;
override any piece or pass an unknown code (rendered as a trailing symbol).
</p>
Whole-major & per-unit suffix
1.450 kr. / hour
$999.00 / seat
Source
<div class="flex flex-wrap items-baseline gap-10 font-head text-2xl">
<sigta:money :minor="145000" currency="DKK" :decimals="0" suffix="/ hour" />
<sigta:money :minor="99900" currency="USD" suffix="/ seat" />
</div>
Money input — amount field + currency toggle
Type a major amount; a hidden input carries the value in minor units on the forwarded
wire:model. Bind the toggle with currency-model.
Source
<div class="max-w-md">
<sigta:money-input label="Hourly rate" :value="145000" currency="DKK" />
</div>
<p class="mt-4 max-w-[60ch] font-mono text-[0.7rem] text-graphite">
Type a major amount; a hidden input carries the value in minor units on the forwarded
<code class="text-[0.85em]">wire:model</code>. Bind the toggle with <code class="text-[0.85em]">currency-model</code>.
</p>
Inline (a value in a detail view)
Fixed price
Owner
Line Bak
Source
<div class="grid max-w-md grid-cols-[7rem_1fr] items-center gap-x-4 gap-y-1">
<span class="font-mono text-[0.68rem] uppercase tracking-[0.08em] text-graphite">Fixed price</span>
<sigta:money-input variant="inline" placeholder="By the hour" :value="1200000" currency="DKK" :currencies="['DKK' => 'DKK']" />
<span class="font-mono text-[0.68rem] uppercase tracking-[0.08em] text-graphite">Owner</span>
<span class="font-body text-[0.98rem] text-ink">Line Bak</span>
</div>