Toolbar
Beta

Tag

The FktTag component provides a visual indicator for status, categories, counts, and other contextual information. Built with Angular signals and flexible styling options, it offers semantic color coding and variant styles for different visual prominence levels.

Import

import {FktTagComponent} from "frakton-ng/tag";

Success tag

A standard badge with success state and opaque styling, perfect for status indicators.

Error tag

Badge showing error state with red color for urgent attention.

Warning tag

Badge with orange color for warnings and pending states that need attention.

Info tag

Badge with blue color for informational content and faded variant for subtle display.

Tag variations

Comprehensive showcase of all available colors and variants, demonstrating the full range of badge styling options.

Opaque Variant

Faded Variant

Count tag

Numerical badges perfect for displaying counts, quantities, and numbers.

Status tag

Status indicators for workflow states, item conditions, and process stages.

Priority tag

Priority indicators for tasks, issues, and items requiring attention levels.

Category tag

Category and classification badges for organizing and labeling content.

Long text tag

Badges with longer text content demonstrating text handling and wrapping.

Tag

Key Features

  • Semantic Colors: Green, red, blue, and orange color options for different states
  • Visual Variants: Opaque and faded styles for different prominence levels
  • Flexible Content: Supports text content with automatic sizing
  • Responsive Design: Adapts to content and container sizes
  • Accessibility: Proper contrast ratios and readable text
  • Signal-Based: Built with Angular signals for optimal performance

Configuration Options

Types

export type FktTagColor = 'green' | 'red' | 'blue' | 'orange';

export type FktTagVariant = 'opaque' | 'faded';

Use Cases

Status Indicators

Perfect for showing state and status:

  • Order and payment status
  • User activity states
  • System health indicators
  • Process completion status

Categorization

Ideal for content organization:

  • Product categories and types
  • Content tags and labels
  • Feature indicators
  • Classification systems

Notifications

Great for alert and notification systems:

  • Unread message counts
  • Alert indicators
  • Activity counters

Data Visualization

Essential for dashboard and reporting:

  • Metric indicators
  • Performance badges
  • Quality scores
  • Achievement markers

Accessibility

  • Color Independence: Information is not conveyed through color alone
  • Contrast Ratios: Meets WCAG contrast requirements for text readability
  • Screen Reader Support: Badge content is properly announced
  • Semantic Meaning: Color choices reflect common semantic associations
  • Text Clarity: Readable text sizes and font weights

Performance

  • Lightweight: Minimal CSS and JavaScript footprint
  • Efficient Rendering: Optimized change detection with Angular signals
  • Memory Efficient: No complex state management or subscriptions