Badge
iconiq-ui/badgeFreeComponent
Preset-color badge with tinted fills, semantic aliases, animated default shimmer, dot variant, dismiss controls, and reduced-motion aware motion. Motion + CVA + Slot.
Live preview
live · rendered by the registry
Rendered by Iconiq UI on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.iconiqui.com/r/badge.jsonSource
1"use client";23import { Slot } from "@radix-ui/react-slot";4import { cva, type VariantProps } from "class-variance-authority";5import { motion, useReducedMotion } from "motion/react";6import {7 type CSSProperties,8 type ForwardedRef,9 forwardRef,10 type HTMLAttributes,11 type KeyboardEventHandler,12 type MouseEventHandler,13 type ReactNode,14} from "react";1516import { cn } from "@/lib/utils";1718const componentThemeClassName =19// … truncated
What it pulls in
npm packages
Files it writes
More from Iconiq UI
All 119 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Iconiq UI | Components | Free | 2 deps | |
| AI Inputai-input | Iconiq UI | Components | Free | 3 deps | |
| Alertalert | Iconiq UI | Components | Free | 2 deps | |
| Avataravatar | Iconiq UI | Components | Free | 3 deps | |
| Accordion (Base UI)b-accordion | Iconiq UI | Components | Free | 2 deps | |
| Alert Dialog (Base UI)b-alert-dialog | Iconiq UI | Components | Free | 3 deps | |
| Autocomplete (Base UI)b-autocomplete | Iconiq UI | Components | Free | 3 deps | |
| Avatar (Base UI)b-avatar | Iconiq UI | Components | Free | 2 deps |
