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.

Meh
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add https://lucide-animated.com/r/meh.json

Usage

usage.tsx
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.

default-hover-icon.tsx
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.

imperative-control-via-ref.tsx
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.

icon-inside-a-feedback-row.tsx
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

PropTypeDefaultDescription
sizenumber28Width and height of the SVG in pixels. Applied to both the width and height attributes of the motion.svg element.
classNamestring—Class name applied to the outer wrapper div (passed through cn). Use text-* utilities to change the stroke color, since the stroke uses currentColor.
refReact.Ref<MehIconHandle>—Forwarded ref exposing startAnimation() and stopAnimation(). Attaching a ref switches the component to controlled mode, disabling automatic hover-triggered animation.
onMouseEnter(e: React.MouseEvent<HTMLDivElement>) => void—Optional handler called after the internal mouse-enter animation trigger on the wrapper div.
onMouseLeave(e: React.MouseEvent<HTMLDivElement>) => void—Optional handler called after the internal mouse-leave reset trigger on the wrapper div.
...propsOmit<HTMLAttributes<HTMLDivElement>, never>—Any other standard div attributes (id, style, aria-*, data-*, etc.) are spread onto the outer wrapper div.

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.

prompt.md
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
dependenciesmotion

Looks similar, elsewhere