Components
Fields and choices
Fields are soft filled shapes with the label above and a hint below. Choices are lists to tap; on/off settings are switches. Settings say what they do when on, and people infer the rest.
Text fields
2 to 30 letters. This is how your name appears in the episode.
Only used to find your support. Never shown.
Choices
An e-mail when a new round opens.
Your name appears beside your support.
The amount that isn’t available yet is dimmed with its reason, rather than refused after a tap.
A day
| Saturday | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday |
|---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | ||||
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
|---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
Days with nothing free are dimmed, so nobody presses a day only to hear it is full. Both months hold the same day: the page keeps it as ISO text (2026-12-09), whichever calendar shows it.
Code
Field · Label, control, hint and guidance for one form field.
import * as Field from '#lib/components/ui/field/index.js';
<Field.Field>
<Field.Label for="handle">YouTube handle</Field.Label>
<Input id="handle" name="handle" dir="ltr" aria-invalid={!ok} />
{#if ok}<Field.Description>The @name under your channel title.</Field.Description>
{:else}<Field.Error>Write your handle like @yourchannel.</Field.Error>{/if}
</Field.Field>Input · Single-line text, e-mail, number, file.
import { Input } from '#lib/components/ui/input/index.js';
<Input id="mobile" name="mobile" inputmode="numeric" dir="ltr" placeholder="0912 345 6789" />Select · Choosing one of several options. Unavailable options disabled with the reason in their label.
import * as Select from '#lib/components/ui/select/index.js';
<Select.Root type="single" name="round" bind:value={round}>
<Select.Trigger class="w-full">{label}</Select.Trigger>
<Select.Content>
<Select.Item value="3" label="Round 3 · Rostam" />
<Select.Item value="4" label="Round 4 · opens with the next episode" disabled />
</Select.Content>
</Select.Root>Switch · On/off settings. Turquoise when on.
import { Switch } from '#lib/components/ui/switch/index.js';
<Field.Field orientation="horizontal">
<Field.Content>
<Field.Label for="emails">New-round e-mails</Field.Label>
<Field.Description>An e-mail when a new round opens.</Field.Description>
</Field.Content>
<Switch id="emails" name="emails" bind:checked={emails} />
</Field.Field>Checkbox · Agreeing to something, or picking several items.
import { Checkbox } from '#lib/components/ui/checkbox/index.js';
<Field.Field orientation="horizontal">
<Checkbox id="terms" name="terms" bind:checked={terms} />
<Field.Label for="terms" class="font-normal">I have read the terms</Field.Label>
</Field.Field>RadioGroup · One of a few visible options, as tappable rows.
import * as RadioGroup from '#lib/components/ui/radio-group/index.js';
<RadioGroup.Root bind:value={amount} name="amount">
<Field.Label for="a1">
<Field.Field orientation="horizontal">
<RadioGroup.Item value="50000" id="a1" />
<Field.Content><Field.Title>50,000 toman</Field.Title></Field.Content>
</Field.Field>
</Field.Label>
</RadioGroup.Root>Calendar · Choosing a day on a Persian or Gregorian month grid; dims days with nothing free.
import { Calendar } from '#lib/components/ui/calendar/index.js';
<!-- day is ISO Gregorian text (2026-12-09), whichever calendar shows it -->
<Calendar bind:value={day} calendar="persian" lang="fa" min={today} isDateUnavailable={(iso) => !free.has(iso)} />
<Calendar bind:value={day} calendar="gregorian" lang="en" />