Import
import { EntityStatusBadge } from '@contentful/f36-components';// orimport { EntityStatusBadge } from '@contentful/f36-badge';
Examples
EntityStatusBadge can represent different entity statuses. The value is passed as an entityStatus
property and displayed as content in the badge:
Published
Draft
Archived
Changed
Deleted
New
With scheduled actions
Some entities have scheduled actions, for instance an entry might be scheduled to be published at a specific time later on:
Props (API reference)
Content guidelines
- try to use labels with short, scannable text
- try to use a single word to describe the status of an element
- try to describe the status in the past tense, like changed or archived
Accessibility
- text must be clear enough for color-blind users to be able to understand immediately without needing to rely only on the color.