You are viewing a PR preview for PR #1506

Agriculture Design System
Beta
Design System for the Export Service

Status badge

Status badges are visual indicators used to highlight an item's status for quick recognition.

View in FigmaView in StorybookView in Github
import { ... } from '@ag.ds-next/react/status-badge';

Usage

Status badge components can be imported via the status-badge entrypoint in the @ag.ds-next/react package.

For example:

import { ... } from '@ag.ds-next/react/status-badge';

Props

StatusBadge Props
PropTypeDescription
labelReactNodeThe status that is printed in the text label.
tone"info" | "success" | "error" | "warning" | "neutral"The color tone to apply.
weight?StatusBadgeWeightDefault: "regular"The visual weight to apply.

Source

You can view the full source code for this package on Github.