OverviewInstallationMigrating to 1.0Themes and layersKanok designCustomizingIconsForms and validationFrameworksUsing with AIButtonText inputText areaNumber inputSearchSelectDropdownComboboxMulti-selectCheckboxRadio buttonToggleDate pickerTime pickerSliderFile uploaderModalSide panelTearsheetNotificationToastTooltipDefinition tooltipPopoverToggletipMenuData tableStructured listPaginationContained listTree viewTabsBreadcrumbLinkPagination navContent switcherAccordionProgress indicatorUI shellTagTileCardProduct cardCode snippetCopy buttonUser avatarTruncated textListLoadingInline loadingProgress barSkeletonBadge indicatorStatus indicatorGridHeadingLayerAction setPage headerBig numberEdit in placeIntroductionText inputText areaNumber inputSearchSelectDropdownComboboxMulti-selectCheckboxRadio buttonToggleDate pickerTime pickerSliderFile uploaderTabsPagination navContent switcherTooltipDefinition tooltipPopoverMenuAccordionProgress indicatorUI shellModalSide panelTearsheetNotificationToastData tableStructured listPaginationTree viewCode snippetCopy buttonTruncated textLoadingTagCardProduct cardEdit in place
Tile
A tile is a plain box on the next layer colour: 16px padding, no border, no shadow. It groups content on a dashboard or a summary page. With href the whole tile becomes one link. Carbon has four more kinds; here they are ui-expandable-tile, ui-selectable-tile and ui-radio-tile.
npmshadcn · Web componentshadcn · React + TailwindManualnpminstall@purpurabog/uinpxshadcn@4add@kanok-ui/tilenpxshadcn@4add@kanok-ui/tw-tile# Web component# 1. Install the dependenciesnpminstalllit@^3.3.0# 2. Copy each file's "content" from# https://cdn.jsdelivr.net/npm/@purpurabog/ui@2.3.0/registry/tile.json# to its target:# components/ui/primitives/tile/expandable-tile.ts# components/ui/primitives/tile/radio-tile.ts# components/ui/primitives/tile/selectable-tile.ts# components/ui/primitives/tile/selection-tiles-shared.ts# components/ui/primitives/tile/selection-tiles.ts# components/ui/primitives/tile/tile.ts# 3. Do the same for the items it needs (registry/<name>.json):# checkbox, radio, shared-element, shared-events, shared-field, shared-localize, shared-navigate, tokens# React + Tailwind# 1. Install the dependenciesnpminstall@purpurabog/ui@^2.3.0# 2. Copy each file's "content" from# https://cdn.jsdelivr.net/npm/@purpurabog/ui@2.3.0/registry/tw-tile.json# to its target:# components/ui/react-tw/tile.tsx# 3. Do the same for the items it needs (registry/<name>.json):# tw-checkbox, tw-field, tw-i18n, tw-radio-group, tw-theme, tw-utils
npm gives you every component from the package. shadcn copies the source into your app instead: a copy pinned to this version that you can change. The shadcn commands need the @kanok-ui registry in your components.json once, see Installation.
Use it
Each kind has its own module: tile for ui-tile, expandable-tile, and selection-tiles for the selectable and radio tiles.
A checkbox with room for a title and a description. More on the checkbox page.
Radio tile
ui-radio-tile
A radio option with room for a title and a description. More on the radio page.
For a box with a header, media and actions, use a Card.
Content
Put any content in a tile: headings, text, a small table. A tile is at least 64px tall and 128px wide and fills its column, so lay several out with CSS grid. The text inside is body-compact-01 unless you set another font.
Office lease, Silom branch
Three-year lease from 1 January 2027. Rent is paid on the 5th of each month.
Owner: Legal department
HTMLReactReact + Tailwind<ui-tilestyle="max-width: 420px">
<h3style="margin: 0 0 8px; font: var(--ui-font-heading-02)">Office lease, Silom branch</h3>
<pstyle="margin: 0 0 16px">Three-year lease from 1 January 2027. Rent is paid on the 5th of each month.</p>
<pstyle="margin: 0; color: var(--ui-ink-muted)">Owner: Legal department</p>
</ui-tile><UiTilestyle={{ maxWidth:420 }}>
<h3>Office lease, Silom branch</h3>
<p>Three-year lease from 1 January 2027. Rent is paid on the 5th of each month.</p>
<p>Owner: Legal department</p>
</UiTile><TileclassName="max-w-[420px]">
<h3className="mb-2 type-heading-02">Office lease, Silom branch</h3>
<pclassName="mb-4">Three-year lease from 1 January 2027. Rent is paid on the 5th of each month.</p>
<pclassName="text-ink-muted">Owner: Legal department</p>
</Tile>
Clickable tile
With href the whole tile is one link and a single tab stop; the pointer turns its fill to the hover colour. Its text is the link's name, so keep it short, and don't put other buttons or links inside. As in Carbon, a linked tile has no icon until you give it one in the icon slot (the icon prop in React + Tailwind): 20px, 12px from the bottom-end corner.
target="_blank" opens the link in a new tab; the tile then adds "(opens in a new tab)" for screen readers and rel="noopener noreferrer".
Disabled clickable tile
disabled on a linked tile turns it into plain greyed text with no link (Carbon's disabled ClickableTile), for a page the user can't open right now. Say why in the tile.
Annual report 2026
Available after the books close on 31 January
HTMLReactReact + Tailwind<ui-tilehref="#accessibility"disabledstyle="max-width: 320px">
<h3style="margin: 0 0 8px; font: inherit; font-weight: 600">Annual report 2026</h3>
<pstyle="margin: 0">Available after the books close on 31 January</p>
</ui-tile><UiTilehref="/reports/2026"disabledstyle={{ maxWidth:320 }}>
<h3>Annual report 2026</h3>
<p>Available after the books close on 31 January</p>
</UiTile><Tilehref="/reports/2026"disabledclassName="max-w-[320px]">
<h3className="mb-2 font-semibold">Annual report 2026</h3>
<p>Available after the books close on 31 January</p>
</Tile>
Route with your SPA router
A plain click on a linked tile first fires a cancelable ui-navigate with { href }. Cancel it and let your router change the page; one listener on document covers every element, see Frameworks. The demo cancels it and shows the address instead.
C-2026-014
Supply agreement, Chiang Mai plant
Router would open:
HTMLReactReact + Tailwind<ui-tileid="tile-route"href="/contracts/C-2026-014"style="max-width: 320px">
<h3style="margin: 0 0 8px; font: var(--ui-font-heading-02)">C-2026-014</h3>
<pstyle="margin: 0">Supply agreement, Chiang Mai plant</p>
</ui-tile>
<p>Router would open: <outputid="tile-route-out">nothing yet</output></p>
<scripttype="module">
const tile = document.getElementById('tile-route');
const out = document.getElementById('tile-route-out');
tile.addEventListener('ui-navigate', (event) => {
event.preventDefault();
out.value = event.detail.href;
});
</script>const navigate =useNavigate(); // your router
<UiTilehref="/contracts/C-2026-014"onUiNavigate={(e) => {
e.preventDefault();
navigate(e.detail.href);
}}
>
<h3>C-2026-014</h3>
<p>Supply agreement, Chiang Mai plant</p>
</UiTile>// the tile is a real <a>: wrap it in your router's link, or handle the click
<Tilehref="/contracts/C-2026-014"onClick={(e) => {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button !==0) return;
e.preventDefault();
navigate('/contracts/C-2026-014');
}}
>
<h3className="mb-2 type-heading-02">C-2026-014</h3>
<p>Supply agreement, Chiang Mai plant</p>
</Tile>
On a layer
A tile draws itself in the layer colour it sits on. Inside a ui-layer it takes the next one, so it still stands out from a grey panel.
On layer 1 The tile takes layer 2.Clickable Its hover follows the layer too.
ui-expandable-tile shows a summary and opens to show more. The summary (slot="summary") sits inside the toggle button, so keep it to text; put links, fields and buttons in the revealed part. The chevron in the bottom-end corner turns when it opens.
Signing options Retention, watermark, signer records
Signed copies are kept for 10 years. Every page carries a watermark with the contract number, and the signer's IP address is recorded.
HTMLReactReact + Tailwind<ui-expandable-tilestyle="max-width: 560px">
<spanslot="summary"><b>Signing options</b><br />Retention, watermark, signer records</span>
<pstyle="margin: 16px 0 0">Signed copies are kept for 10 years. Every page carries a watermark with the contract number, and the signer's IP address is recorded.</p>
</ui-expandable-tile><UiExpandableTilestyle={{ maxWidth:560 }}>
<spanslot="summary"><b>Signing options</b><br />Retention, watermark, signer records</span>
<p>Signed copies are kept for 10 years. Every page carries a watermark with the contract number, and the signer's IP address is recorded.</p>
</UiExpandableTile><ExpandableTileclassName="max-w-[560px]"summary={<><b>Signing options</b><br />Retention, watermark, signer records</>}>
<pclassName="mt-4">Signed copies are kept for 10 years. Every page carries a watermark with the contract number, and the signer's IP address is recorded.</p>
</ExpandableTile>
Open state and events
expanded opens the tile (start it open by setting it). After each toggle ui-toggle fires with detail.expanded. toggle() on the element opens or closes it from your code; toggle(true) only opens.
Payment schedule 12 instalments
5th of each month, 85,000 baht, by bank transfer.
OpenExpanded:
HTMLReactReact + Tailwind<ui-expandable-tileid="tile-expand"expandedstyle="max-width: 560px">
<spanslot="summary"><b>Payment schedule</b><br />12 instalments</span>
<pstyle="margin: 16px 0 0">5th of each month, 85,000 baht, by bank transfer.</p>
</ui-expandable-tile>
<divstyle="display: flex; flex-wrap: wrap; gap: 16px; align-items: center">
<ui-buttonid="tile-expand-open"kind="tertiary"size="sm">Open</ui-button>
<span>Expanded: <outputid="tile-expand-out"></output></span>
</div>
<scripttype="module">
const tile = document.getElementById('tile-expand');
const out = document.getElementById('tile-expand-out');
out.value = tile.expanded;
tile.addEventListener('ui-toggle', (event) => (out.value = event.detail.expanded));
document.getElementById('tile-expand-open').addEventListener('click', () => tile.toggle(true));
</script>const [expanded, setExpanded] =useState(true);
<UiExpandableTileexpanded={expanded} onUiToggle={(e) =>setExpanded(e.detail.expanded)}>
<spanslot="summary"><b>Payment schedule</b><br />12 instalments</span>
<p>5th of each month, 85,000 baht, by bank transfer.</p>
</UiExpandableTile>
<UiButtonkind="tertiary"size="sm"onClick={() =>setExpanded(true)}>Open</UiButton>
<p>Expanded: <output>{String(expanded)}</output></p>const [expanded, setExpanded] =useState(true);
<ExpandableTileexpanded={expanded} onToggle={setExpanded} summary={<><b>Payment schedule</b><br />12 instalments</>}>
<pclassName="mt-4">5th of each month, 85,000 baht, by bank transfer.</p>
</ExpandableTile>
<Buttonkind="tertiary"size="sm"onClick={() =>setExpanded(true)}>Open</Button>
<p>Expanded: <output>{String(expanded)}</output></p>
React + Tailwind also takes defaultExpanded for a tile you don't control.
Keep it open
Before it changes, the tile fires a cancelable ui-before-toggle with the state it is about to take. Cancel it to keep the tile as it is, for example while a note inside isn't saved. In React + Tailwind, return false from onBeforeToggle. Type a note, then try to close the tile.
ui-selectable-tile is a checkbox drawn as a tile, with the same API as ui-checkbox: checked, name, value, change, and it submits with its form. Alone, each tile is one yes/no choice. Groups, required, read-only and errors are on the checkbox page.
Stamp duty Calculate and pay for meTranslation Thai and English copiesCourier Not available in your area
Chosen:
HTMLReactReact + Tailwind<divid="tile-addons"style="display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px">
<ui-selectable-tilename="addons"value="stamp"><b>Stamp duty</b><br />Calculate and pay for me</ui-selectable-tile>
<ui-selectable-tilename="addons"value="translate"checked><b>Translation</b><br />Thai and English copies</ui-selectable-tile>
<ui-selectable-tilename="addons"value="courier"disabled><b>Courier</b><br />Not available in your area</ui-selectable-tile>
</div>
<p>Chosen: <outputid="tile-addons-out"></output></p>
<scripttype="module">
const row = document.getElementById('tile-addons');
const out = document.getElementById('tile-addons-out');
constshow= () => (out.value = [...row.querySelectorAll('ui-selectable-tile')].filter((tile) => tile.checked).map((tile) => tile.value).join(', ') ||'none');
show();
row.addEventListener('change', show);
</script>importtype { UiSelectableTile as SelectableTileElement } from'@purpurabog/ui';
const [chosen, setChosen] =useState<string[]>(['translate']);
consttoggle= (e:Event) => {
const tile = e.target asSelectableTileElement;
setChosen(tile.checked ? [...chosen, tile.value] : chosen.filter((v) => v !== tile.value));
};
<UiSelectableTilename="addons"value="stamp"checked={chosen.includes('stamp')} onChange={toggle}><b>Stamp duty</b><br />Calculate and pay for me</UiSelectableTile>
<UiSelectableTilename="addons"value="translate"checked={chosen.includes('translate')} onChange={toggle}><b>Translation</b><br />Thai and English copies</UiSelectableTile>
<UiSelectableTilename="addons"value="courier"disabled><b>Courier</b><br />Not available in your area</UiSelectableTile>
<p>Chosen: <output>{chosen.join(', ') ||'none'}</output></p>const [chosen, setChosen] =useState<string[]>(['translate']);
consttoggle= (e:ChangeEvent<HTMLInputElement>) =>setChosen(e.target.checked ? [...chosen, e.target.value] : chosen.filter((v) => v !== e.target.value));
<SelectableTilename="addons"value="stamp"checked={chosen.includes('stamp')} onChange={toggle}><b>Stamp duty</b><br />Calculate and pay for me</SelectableTile>
<SelectableTilename="addons"value="translate"checked={chosen.includes('translate')} onChange={toggle}><b>Translation</b><br />Thai and English copies</SelectableTile>
<SelectableTilename="addons"value="courier"disabled><b>Courier</b><br />Not available in your area</SelectableTile>
<p>Chosen: <output>{chosen.join(', ') ||'none'}</output></p>
Radio tiles
ui-radio-tile is one option of a ui-radio-group, drawn as a tile. The group gives the arrow keys, the value, change and the form; the check mark shows only on the chosen tile. Orientation, required, read-only and errors are on the radio page.
E-signature Sign online in minutesPaper Print, sign and scanAt a branch Sign with a witness from our staff
Value:
HTMLReactReact + Tailwind<ui-radio-groupid="tile-method"label="Signing method"name="method"value="esign">
<ui-radio-tilevalue="esign"><b>E-signature</b><br />Sign online in minutes</ui-radio-tile>
<ui-radio-tilevalue="paper"><b>Paper</b><br />Print, sign and scan</ui-radio-tile>
<ui-radio-tilevalue="branch"><b>At a branch</b><br />Sign with a witness from our staff</ui-radio-tile>
</ui-radio-group>
<p>Value: <outputid="tile-method-out"></output></p>
<scripttype="module">
const group = document.getElementById('tile-method');
const out = document.getElementById('tile-method-out');
out.value = group.value;
group.addEventListener('change', () => (out.value = group.value));
</script>importtype { UiRadioGroup as RadioGroupElement } from'@purpurabog/ui';
const [method, setMethod] =useState('esign');
<UiRadioGrouplabel="Signing method"name="method"value={method} onChange={(e) =>setMethod((e.target asRadioGroupElement).value)}>
<UiRadioTilevalue="esign"><b>E-signature</b><br />Sign online in minutes</UiRadioTile>
<UiRadioTilevalue="paper"><b>Paper</b><br />Print, sign and scan</UiRadioTile>
<UiRadioTilevalue="branch"><b>At a branch</b><br />Sign with a witness from our staff</UiRadioTile>
</UiRadioGroup>
<p>Value: <output>{method}</output></p>// npx shadcn@4 add @kanok-ui/tw-radio-groupimport { RadioGroup } from'@/components/ui/react-tw/radio-group';
const [method, setMethod] =useState('esign');
<RadioGrouplabel="Signing method"name="method"value={method} onValueChange={setMethod}>
<RadioTilevalue="esign"><b>E-signature</b><br />Sign online in minutes</RadioTile>
<RadioTilevalue="paper"><b>Paper</b><br />Print, sign and scan</RadioTile>
<RadioTilevalue="branch"><b>At a branch</b><br />Sign with a witness from our staff</RadioTile>
</RadioGroup>
<p>Value: <output>{method}</output></p>
The mark over the corner
A selectable or radio tile keeps 48px free at its end for the mark, as Carbon does, so in narrow columns the text wraps early. Set --ui-tile-mark-space (beyond Carbon) to 16px and the mark sits over the top-end corner instead, leaving the width to the content.
Office supplies and stationeryTravel and lodgingMeals with clients
HTMLReactReact + Tailwind<divstyle="display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; --ui-tile-mark-space: 16px">
<ui-selectable-tilename="spend"value="0"checked>Office supplies and stationery</ui-selectable-tile>
<ui-selectable-tilename="spend"value="1">Travel and lodging</ui-selectable-tile>
<ui-selectable-tilename="spend"value="2">Meals with clients</ui-selectable-tile>
</div><divstyle={{ display:'grid', gridTemplateColumns:'repeat(3, minmax(0, 1fr))', gap:8, '--ui-tile-mark-space':'16px' } asCSSProperties}>
<UiSelectableTilename="spend"value="0">Office supplies and stationery</UiSelectableTile>
<UiSelectableTilename="spend"value="1">Travel and lodging</UiSelectableTile>
<UiSelectableTilename="spend"value="2">Meals with clients</UiSelectableTile>
</div><divclassName="grid grid-cols-3 gap-2 [--ui-tile-mark-space:16px]">
<SelectableTilename="spend"value="0">Office supplies and stationery</SelectableTile>
<SelectableTilename="spend"value="1">Travel and lodging</SelectableTile>
<SelectableTilename="spend"value="2">Meals with clients</SelectableTile>
</div>
Keyboard
Key
Does
Tab
Moves to a clickable tile, an expandable tile's toggle, a selectable tile, or the chosen radio tile. A plain tile isn't a tab stop.
Enter
Follows a clickable tile's link; opens or closes an expandable tile
Space
Opens or closes an expandable tile; checks or unchecks a selectable tile
Arrow keys
Move between radio tiles and choose
Accessibility
A plain tile is a box with no role. Give its content real headings, so the page outline stays right.
A clickable tile is one link, and its whole text is the link's name. Keep it short and put no other controls inside.
An expandable tile's toggle is a button with aria-expanded and aria-controls. Its summary is part of the button's name, which is why it holds text only.
A selectable tile is a real checkbox and a radio tile a real radio, so screen readers announce their state and the tile text is their name.
API
Generated from the package. In React, pass a property as a prop of the same name; events are props too (the React column).
<ui-tile> · React UiTile
Attributes
Attribute
Property
Type
Default
Description
href
href
string
''
Makes the whole tile a link.
target
target
'_self' | '_blank'
'_self'
disabled
disabled
boolean
false
A linked tile that can't be followed right now (Carbon ClickableTile disabled): plain text, no link.
Events
Event
React
Description
ui-navigate
none (use a ref)
detail: { href } (cancelable) on a plain click of the link; cancel it to route client-side (README: SPA router)
Slots
Slot
Description
(default)
Tile content
icon
A linked tile's icon (e.g. an arrow), 20px, 12px from the bottom-end corner
CSS parts
Part
Description
base
The container (<div> or <a>)
CSS custom properties
Custom property
Default
Description
--ui-card-radius
Corner radius (default 0; Kanok: 12px)
--ui-card-border
Border (default none; Kanok: a hairline)
--ui-card-background
Its fill (default --ui-surface-1; Kanok paper: a cool grey that sets it apart from the page, no border)
--ui-focus-offset
outline-offset of its focus ring (default -2px: inside; Kanok: 2px outside)
<ui-expandable-tile> · React UiExpandableTile
Attributes
Attribute
Property
Type
Default
Description
expanded
expanded
boolean
false
Events
Event
React
Description
ui-toggle
onUiToggle
detail: { expanded }
ui-before-toggle
onUiBeforeToggle
Cancelable; detail: { expanded } — the state about to be applied
Slots
Slot
Description
summary
Always visible (text only)
(default)
Revealed content
CSS parts
Part
Description
summary
The always-visible button row
chevron
The arrow icon
content
The expandable body
CSS custom properties
Custom property
Default
Description
--ui-card-border
/ --ui-card-radius - Border and corners, as the cards (default none and square; Kanok: a hairline, 12px)
--ui-card-background
Its fill (default --ui-surface-1; Kanok paper: a cool grey that sets it apart from the page, no border)
--ui-focus-offset
outline-offset of its focus ring (default -2px: inside; Kanok: 2px outside)
<ui-selectable-tile> · React UiSelectableTile
Attributes
Attribute
Property
Type
Default
Description
checked
checked
boolean
false
indeterminate
indeterminate
boolean
false
Mixed state, e.g. a "select all" box with some children checked. Cleared on user toggle.
disabled
disabled
boolean
false
Disables the control; a disabled <fieldset> ancestor does the same.
required
required
boolean
false
Blocks form submission while the field is empty.
readonly
readonly
boolean
false
Shows and submits the value but blocks changes.
hide-label
hideLabel
boolean
false
Keep the label text for screen readers but don't show it.
name
name
string
''
Reflected: form-associated elements submit under the name attribute.
value
value
string
'on'
helper-text
helperText
string
''
Helper text under the field, shown while there is no error or warning.
invalid-text
invalidText
string
''
Error text shown while invalid or while the field fails validation.
invalid
invalid
boolean
false
Forces the error state, e.g. after server-side validation.
warn
warn
boolean
false
Non-blocking warning; shown when there is no error.
warn-text
warnText
string
''
Text of the warning shown while warn.
Properties
Property
Type
Description
groupDisabled
boolean
Set by ui-checkbox-group; kept apart from the author's own disabled / readonly.
groupMessage
string
Error text of the owning ui-checkbox-group while the group is invalid. The group shows it once below the boxes; each box repeats it as its own accessible description and reports aria-invalid, so a screen reader landing on the first box hears why (an IDREF cannot cross the group's shadow root).
willValidate
(read-only) Whether the field takes part in constraint validation (not while disabled), as natively.
labels
(read-only) The <label>s that point at this field.
Methods
Method
Description
setCustomValidity(message)
Like <input>.setCustomValidity(): a non-empty message makes the field invalid (and is shown as its error once touched) until cleared with ''.
Events
Event
React
Description
change
none (use a ref)
When the user toggles the box
Slots
Slot
Description
(default)
Tile content (title, description…)
CSS parts
Part
Description
base
The clickable row (label element)
control
The native checkbox input
box
The drawn 16px box
label
The text beside the box
status-icon
The error / warning icon
helper-text
The helper line
warning-text
The warning line
warn-text
Same line as warning-text (named after the warn-text attribute / slot)
error-text
The error line
invalid-text
Same line as error-text (named after the invalid-text attribute / slot)
CSS custom properties
Custom property
Default
Description
--ui-tile-border-color
Border of an unchosen tile (default transparent; Kanok: a hairline); --ui-card-radius its corners
--ui-card-background
Its fill (default --ui-surface-1; Kanok paper: a cool grey that sets it apart from the page, no border)
--ui-tile-selected-border
Border of the chosen tile (default --ui-layer-selected-inverse; Kanok: primary blue); --ui-tile-selected-mark its check mark (default --ui-icon-primary)
--ui-tile-selected-background
Fill of the chosen tile (default --ui-card-background; Kanok: soft highlight wash)
--ui-tile-mark-space
End padding kept clear for the mark (default 48px, Carbon's); e.g. 16px lets the content run under the mark in the top-end corner (beyond Carbon)
--ui-checkbox-border
Border of the box (default --ui-ink; Kanok: --ui-ink-subtle)
--ui-checkbox-checked
Fill and border when checked or mixed (default --ui-ink; Kanok: --ui-primary)
--ui-checkbox-mark
Check mark colour (default --ui-icon-inverse; Kanok: --ui-on-primary)
<ui-radio-tile> · React UiRadioTile
Attributes
Attribute
Property
Type
Default
Description
value
value
string
''
checked
checked
boolean
false
disabled
disabled
boolean
false
Disables the control; a disabled <fieldset> ancestor does the same.
label-position
labelPosition
RadioLabelPosition | undefined
Carbon labelPosition: left puts the text before the circle; unset, the group's label-position applies.
Slots
Slot
Description
(default)
Tile content (title, description…)
CSS parts
Part
Description
circle
The drawn radio circle
label
The text beside it
CSS custom properties
Custom property
Default
Description
--ui-tile-border-color
Border of an unchosen tile (default transparent; Kanok: a hairline); --ui-card-radius its corners
--ui-card-background
Its fill (default --ui-surface-1; Kanok paper: a cool grey that sets it apart from the page, no border)
--ui-tile-selected-border
Border of the chosen tile (default --ui-layer-selected-inverse; Kanok: primary blue); --ui-tile-selected-mark its check mark (default --ui-icon-primary)
--ui-tile-selected-background
Fill of the chosen tile (default --ui-card-background; Kanok: soft highlight wash)
--ui-tile-mark-space
End padding kept clear for the mark (default 48px, Carbon's); e.g. 16px lets the content run under the mark in the top-end corner (beyond Carbon)
--ui-radio-border
Ring colour (default --ui-ink; Kanok: --ui-ink-subtle)
--ui-radio-checked
Ring and dot when chosen (default --ui-ink; Kanok: --ui-primary)