Skip to content

InboxItem

One notification on its own, for a list an app lays out itself. isPriority gives the reason its warning badge.

  • InboxItem
Status
Stable
axe:
Light, Dark, High contrast
Unit tests:
yes
Keyboard pass:
not yet
Screen reader pass:
not yet
Used in:
no app yet

PreviewLink to the section Preview

Live in all three themes. Everything here is interactive.

Light theme, InboxItem

Dark theme, InboxItem

High contrast theme, InboxItem

UsageLink to the section Usage

tsx
import { InboxItem } from '@skribly/ui/inbox'
tsx
<ul>
  <InboxItem notification={item} labels={labels} isPriority onMarkRead={markRead} linkComponent={Link} />
</ul>

Every label is a prop, so the app passes its own words in its own language. See no built-in text.

AccessibilityLink to the section Accessibility

  • Put it inside a ul or ol: it is a list item.
  • Unread says so in words to a screen reader, with a dot and a bolder title, never colour alone.
  • The title is a link only for an http, https or mailto url or a relative one; any other scheme leaves plain text.
  • The mark-read button has its own label; when it goes, the focus moves to the title link or to the item.

This demo runs through axe in all three themes on every test run. See what the tests check.

Search this site

Arrows move through the results, Enter opens one, Esc closes. Ctrl K /