Meh
MehIcon is an animated neutral-face icon (a circle with a flat mouth and two dot eyes) built on motion/react that plays a small wobble, squash, and eye-blink when hovered or when controlled via a ref. It is a drop-in replacement for a static meh/neutral emoji-style Lucide icon.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Usage
import { MehIcon } from "@/components/ui/meh";export function Example() { return <MehIcon />;}- Showing a neutral or indifferent reaction state in feedback, rating, or survey widgets
- Adding a playful micro-interaction to navigation items, buttons, or list rows that hover into view
- Decorating empty states or 'meh' sentiment messages where a lightweight animated icon is wanted
- Driving the animation programmatically from a parent component via a ref (startAnimation / stopAnimation)
Examples
Default hover icon
Renders the icon at the default 28px size; the animation plays on mouse enter and resets on mouse leave.
import { MehIcon } from "@/components/ui/meh";export default function HoverMeh() { return ( <div className="text-neutral-700"> <MehIcon /> </div> );}Imperative control via ref
Uses the forwarded ref to start the animation from a parent, for example when a survey option is selected. Hover handlers are disabled once a ref is attached.
import { useRef } from "react";import { MehIcon, type MehIconHandle } from "@/components/ui/meh";export default function RatingOption() { const iconRef = useRef<MehIconHandle>(null); return ( <button type="button" onClick={() => iconRef.current?.startAnimation()} onMouseLeave={() => iconRef.current?.stopAnimation()} className="flex items-center gap-2" > <MehIcon ref={iconRef} size={32} /> <span>Neutral</span> </button> );}Icon inside a feedback row
Places the icon next to a label with a custom size and color via className, showing how the wrapper div accepts standard HTML attributes.
import { MehIcon } from "@/components/ui/meh";export default function FeedbackRow() { return ( <div className="flex items-center gap-3 rounded-md border p-4"> <MehIcon size={24} className="text-amber-500" aria-hidden="true" /> <p className="text-sm">It was okay, nothing special.</p> </div> );}API reference
Accessibility
- The SVG has no title, role, or aria-label; when the icon conveys meaning, pass aria-label or aria-hidden via props on the wrapper, or place visible text beside it.
- Decorative use: add aria-hidden="true" to MehIcon so screen readers skip it when adjacent text already describes the state.
- The animation is a short, non-looping scale and rotation; for users who prefer reduced motion, gate startAnimation calls on a prefers-reduced-motion check in the parent.
- Interactive usage: wrap the icon in a button or link with an accessible name, since the hover-only trigger is not reachable by keyboard focus on its own.
- The wrapper div is not focusable; do not rely on hover alone to reveal information.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "Meh" component (lucide-animated/meh) from its shadcn registry.1. Install it with: npx shadcn@latest add https://lucide-animated.com/r/meh.json2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: size, className, ref, onMouseEnter, onMouseLeave, ...props.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { MehIcon } from "@/components/ui/meh";export function Example() { return <MehIcon />;}```Files & dependencies
- meh.tsx