Label

Accessible label element with 8 variants, 4 sizes, and 8 motion animations.

@akex/label

Installation

npm install @akex/label

Usage

import { Label } from "@akex/label";

<Label htmlFor="email">Email address</Label>
<Label variant="success" size="sm">Active</Label>
<Label animation="glow">Live</Label>

Variants

default
primary
secondary
success
warning
destructive
outline
ghost

Sizes

xs
sm
default
lg

Animations

Aceternity UI

A glinting gradient sweep clips inside the label on a continuous loop — Aceternity-style polish.

animation="shimmer"
Aceternity UI

Violet neon drop-shadow pulses in a 2 s loop; hover blazes it to maximum intensity with a double ring.

animation="glow"
Framer / Luma AI

Endless gentle vertical levitation — clean and alive. Perfect for hero section badges.

animation="float"
Linear

Stiff spring lifts the label on hover and presses it on tap. Snappy, tactile, non-distracting.

animation="bounce"
Neon signage

Irregular opacity keyframes simulate a neon tube firing up. Atmospheric and retro-futuristic.

animation="flicker"
Status indicators

Continuous scale heartbeat loop. Draws passive attention — ideal for "live", "new", or "beta" badges.

animation="pulse"
iOS / iPadOS icons

Scales from 0 → 1 with a spring overshoot on mount; hover gives a small lift for ongoing interactivity.

animation="pop"
Magic UI

Continuous hue-rotate + brightness filter shift makes the label color ripple like light through a prism.

animation="wave"

Props

PropTypeDefaultDescription
variantstring"default"Visual style of the label
sizestring"default"Text size
animationLabelAnimation"shimmer" | "glow" | "float" | "bounce" | "flicker" | "pulse" | "pop" | "wave"
htmlForstringAssociates the label with a form input by id
classNamestringExtra Tailwind classes
...propsLabelHTMLAttributesAll native label element attributes