DesignTag

Lightweight tag/chip component for displaying labels, categories, or keywords

Size Variants (Matches Button Sizes)

X-Small
20px
MarketingSEOAI
size="xsmall"
Small
28px
MarketingSEOAI
size="small"
Default
32px
MarketingSEOAI
(no size prop)
Large
40px
MarketingSEOAI
size="large"

Variant Types

Default (Filled)
28px
TwitterSocial MediaGrowth
variant="default"
Outline
28px
TwitterSocial MediaGrowth
variant="outline"
Colored
28px
TwitterSocial MediaGrowth
variant="colored" style={{ backgroundColor: "..." }}

Default Tags

Light gray background with primary text

Props:
{ variant: "default" }
MarketingSEOAIProductivity

Outline Tags

Transparent with border

Props:
{ variant: "outline" }
MarketingSEOAIProductivity

X-Small Size Tags

Compact 20px height for tight spaces

Props:
{ size: "xsmall" }
MarketingSEOAIProductivity

Large Size Tags

Comfortable 40px height (matches Button large)

Props:
{ size: "large" }
MarketingSEOAIProductivity

Interactive Tags

With hover effects and click handler

Props:
{ interactive: true, onClick: "() => {}" }
ClickableHoverableOutline Interactive

As Link (asChild)

Render tag as a link

Props:
{ asChild: true }

Custom Colored Tags

Custom background via style prop

Props:
{ variant: "colored", style: "{ backgroundColor }" }
BlueGreenYellowRedPurple

All Sizes Comparison

Side by side size comparison

Props:
{ size: "xsmall | small | default | large" }
X-SmallSmallDefaultLarge

Blog Category Example

Real-world usage in blog articles

Props:
{ asChild: true, size: "large" }

Dark Mode Support

Automatic dark mode adaptation

Props:
{ variant: "default" }
Auto ThemeOutline Theme

Usage

// Import
import { DesignTag } from "@/components/ui/design-tag";
// Basic usage
<DesignTag>Label</DesignTag>
// With variants and sizes
<DesignTag variant="outline" size="large">Outline Large</DesignTag>
// As a link
<DesignTag asChild>
<Link href="/category/marketing">Marketing</Link>
</DesignTag>
// Custom colored
<DesignTag variant="colored" style={{ backgroundColor: "#dbeafe" }}>
Custom Color
</DesignTag>