Hugeicons Animated

Installation

Add an animated icon to your React project with the shadcn CLI.
1 min read

Each icon installs as source code. You can inspect it, edit it, and keep it with the rest of your components.

Choose an icon

Find an animation in the icon gallery. The gallery gives you the install command for each icon.

Run the install command

Run the command from the root of your React project.

The CLI adds the icon, the shared animation helper, and Motion when your project does not have it.

Import the component

Import the generated file from your local component directory.

Render the icon

Set its size and let it inherit the current text color.

Note

The exact import path follows your shadcn component aliases. The default path is @/components/ui.

What the command adds#

The icon component is yours after installation. There is no runtime dependency on the Hugeicons Animated site.

Built with Docs7