Link
Render the whole badge group as a real link through asChild. The badge and message form the link name; the arrow moves on hover except under reduced motion. Preserves the complete example's required parts, labels and providers. The example's local state remains owned by that composition.
"use client"
import { BadgeGroup, BadgeGroupArrow, BadgeGroupBadge, BadgeGroupMessage } from "@/components/ui/badge-group"
export function BadgeGroupLink() {
return (
<div className="flex w-full max-w-md flex-col items-start gap-6">
<BadgeGroup asChild>
<a href="#changelog">
<BadgeGroupBadge>New</BadgeGroupBadge>
<BadgeGroupMessage>Dark mode is here</BadgeGroupMessage>
<BadgeGroupArrow />
</a>
</BadgeGroup>
</div>
)
}