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
- Warning
Unread: The agent waits for your answer on SK-14
Agent waitingIt asks which of two migrations to keep.
Dark theme, InboxItem
- Warning
Unread: The agent waits for your answer on SK-14
Agent waitingIt asks which of two migrations to keep.
High contrast theme, InboxItem
- Warning
Unread: The agent waits for your answer on SK-14
Agent waitingIt asks which of two migrations to keep.
UsageLink to the section Usage
import { InboxItem } from '@skribly/ui/inbox'<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.