Back to icons
IconEmoji & GamingHas a state
Smile icon
The Smile icon is an animated React icon from ReactFrame: a 24×24 drawing with a 1.5px stroke that moves when its button or card is hovered, and switches to a “Wink” state with the active prop. Copy it as SVG or JSX, download the .svg file, or install it with the shadcn CLI. It's free.
16
20
24
32
48
Hover to play
Install
Copied!
npx shadcn@latest add @reactframe/smile-iconUse it
import { useState } from "react";
import { motion } from "motion/react";
import { SmileIcon } from "@/components/smile-icon";
export function Example() {
const [on, setOn] = useState(false);
// Hovering the button plays the icon; `active` switches it to its "Wink" state.
return (
<motion.button initial="rest" whileHover="hover" onClick={() => setOn(!on)}>
<SmileIcon size={20} active={on} />
Smile
</motion.button>
);
}Details
- Component
- SmileIcon
- Category
- Emoji & Gaming
- Canvas
- 24 × 24, 2px padding
- Stroke
- 1.5 (adjustable), round caps and joins
- Styles
- Stroke, duotone, static, pixel
- State
- “Wink” via the active prop
- Dependencies
- motion