Components general

Badge

A small label or tag component used for status indicators, categories, highlights, and similar purposes. It supports multiple visual variants.

Actualizado Feb 19, 2026

Badge

A small label or tag component used for status indicators, categories, highlights, and similar purposes. 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.

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.

Recommendations: 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

Etiquetas

badge content status indicators category tags labels and

Componentes relacionados

¿Listo para crear?

Comienza a crear tu aplicación de forma gratuita con Qödiak.

Comenzar gratis

Artículos relacionados

AnimatedCounter

An animated number counter that smoothly counts from a start value to an end value when scrolled into view, ideal for showcasing statistics, metrics, and numbers on any site.

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.

AppSettings

App-level configuration that applies to the entire application. It controls app metadata, publishing, authentication, email notifications, SEO, webhooks, and branding. These settings are distinct from page-level and component-level properties.

Button

An 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. The component offers two visual variants and can enable or disable 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 world‑class animation support.