Hacktron Design System

Badge

A general-purpose label.

Default Default (Ghost)
<template>
  <Badge variant="default">New</Badge>
</template>

Props

Name Type Default
variant"default" | "success" | "warning" | "error""default"
fill"default" | "ghost""default"
size"sm" | "md""sm"

Slots

Name Description
defaultBadge label.
leftIconIcon before the label. Figma models this as a leftIcon boolean + fixed icon; adapted to a slot to match this codebase's existing icon-slot pattern.
rightIconIcon after the label.

Usage

Examples

Semantic feedback

Success, warning, and error states — each filled with a border in its own color.

Success Warning Error
<template>
  <Badge variant="success">Success</Badge>
  <Badge variant="warning">Warning</Badge>
  <Badge variant="error">Error</Badge>
</template>

SeverityBadge

A fixed-label badge for a finding's severity level.

Low Medium High Critical Information Invalid
<template>
  <SeverityBadge severity="critical" />
</template>

Props

Name Type Default
severity"low" | "medium" | "high" | "critical" | "informational" | "invalid""low"

Slots

Name Description
leftIconIcon before the label.
rightIconIcon after the label.

Usage

StatusBadge

A colored dot and label for showing a status, with an optional pulse for in-progress states.

Running Completed Triaging Failed Cancelled Draft
<template>
  <StatusBadge color="blue" :animate="true">Running</StatusBadge>
</template>

Props

Name Type Default
color"blue" | "green" | "yellow" | "red" | "gray" | "orange""gray"
animatebooleanfalse

Slots

Name Description
defaultStatus label text.

Usage