Skip to content
Nana UI

Data Display & Media

Check Item

One rule in a checklist and whether it holds: an icon for the outcome, the rule in a line, and what was found. A failed rule turns its line red and can carry the action that clears it.

View .md Download

The outcome is said in words to a screen reader as well as drawn, so the colour is never the only signal.

You are 15,280 behind on your contributions. Clear it before borrowing.

A row in a Checklist; see that page for the outcomes and the summary. On its own it is a single rule and its result.

You are 15,280 behind on your contributions. Clear it before borrowing.
npm install @nana-tec/ui-components

Or copy the source in and own it:

npx @nana-tec/ui add check-item
import "@nana-tec/ui-components/check-item";
<nana-check-item status="fail" label="Contributions up to date" note="15,280.00 overdue">
You are 15,280 behind on your contributions. Clear it before borrowing.
</nana-check-item>

Properties

PropertyAttributeTypeDefaultDescription
labellabelstring''The rule, in a line
notenotestring''An emphasised line under the detail, such as the amount overdue
statusstatusCheckStatus'pending'Whether the rule holds

Slots

SlotDescription
(default)What was found, under the rule
actionA control that resolves the check, such as a Pay now button
iconReplaces the outcome icon

CSS parts

PartDescription
::part(base)The row
::part(icon)The outcome icon
::part(label)The rule
::part(detail)What was found
::part(note)The emphasised line under the detail
::part(action)The action area

CSS custom properties

PropertyDescription
--nana-check-passColour of a passed check
--nana-check-failColour of a failed check
--nana-check-warnColour of a check that needs attention
--nana-checklist-item-paddingSpace above and below the row
Explore Check Item interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook