Badge

Type: React component

How to get Badge?

JavaScript

import Badge from 'fontoxml-feedback/src/Badge.jsx'

Renders something similar to an FDS Chip but without the remove (X) icon button.

Useful to render the AnnotationStatus in your custom CardContentComponent for a registered review annotation type.

Props

  1. label

    (Required)

    Type: Number | String

    The text that is displayed in the badge. Displayed as the children of an FDS Label.

  2. tooltipContent

    (Optional)

    Type: React.ReactNode

    The text that is displayed when hovering over the badge.

    Default value