Components general

Badge

A small label or tag component used for status indicators, categories, highlights, or count displays. It supports multiple visual variants.

Mis à jour Mar 6, 2026

Badge

A small label or tag component used for status indicators, categories, highlights, or count displays. It supports multiple visual variants.

Use Cases

  • Status indicators (New, Active, Pending, Completed)
  • Category tags
  • Labels and highlights
  • Count indicators
  • Feature tags (Pro, Beta, Premium)

Properties

children

Badge text content - should be short (1-2 words). Type: string. Required.

variant

Visual style variant. Type: string. Options: default, secondary, outline, destructive. Default: default.

Visual Impact: default – Solid background, high contrast - prominent badge; secondary – Muted background - subtle badge; outline – Border only, transparent background - minimal badge; destructive – Red/warning color - error or warning indicator.

Tip: status – Use 'default' for active/featured status; subtle – Use 'secondary' for category tags; minimal – Use 'outline' for low‑emphasis labels; warnings – Use 'destructive' for errors, warnings, or negative status.

size

Badge size. Type: string. Options: sm, md, lg.

Best Practices

  • Use variant: 'default' for neutral badges
  • Use variant: 'secondary' for subtle badges
  • Use variant: 'destructive' for warnings or errors
  • Keep text short (1-2 words, max 10 characters)
  • Use for highlighting, not as primary content

Common Mistakes

Using long text in badges (3+ words)

Why it's a problem: Badges designed for short labels - long text looks cramped and unprofessional

Fix: Keep badge text to 1-2 words max (New, Active, Pro, Featured)

Using badges as primary content

Why it's a problem: Badges are accent elements for highlighting - not for main content

Fix: Use badges to supplement primary content (headings, text), not replace it

Étiquettes

badge content status indicators category tags labels and

Composants associés

Prêt à construire ?

Commencez à créer votre application gratuitement avec Qödiak.

Commencer gratuitement

Articles associés

AnimatedGradient

Smooth animated gradient background for modern, premium aesthetics. Supports linear and radial gradients with configurable colors, animation speed, and intensity. GPU‑accelerated for smooth 60fps performance.

Button

Interactive button component that supports link navigation, page data source operations (record navigation, new record, mode switching), form submission, and custom JavaScript execution. Save/Delete actions must use a custom‑script with navigation. Two visual variants are available, and the button can be enabled or disabled dynamically based on data context.

Calendar

A full‑featured calendar component built with react‑big‑calendar. It can display events in month, week, day, or agenda views and includes navigation and view‑switching capabilities, making it suitable for any site that needs scheduling, event management, or date visualization.

Card

Feature card component with an icon, title, description, and entrance animations. Ideal for showcasing features, services, or benefits in grid layouts with animation support.

Checkbox

A checkbox group component that lets users select multiple options from a predefined list. It renders a set of checkboxes with individual labels and can be arranged vertically or horizontally.

CountdownTimer

Real-time countdown timer component that displays the time remaining until a target date/time. It updates every second, offers customizable formatting, and shows a completion message when the countdown ends. Suitable for any site type.