wifi-01

Wifi01Icon is an animated wifi signal icon that renders three stroked arcs and a source dot in an SVG. On hover it plays a looping outward pulse, and it can also be driven imperatively through a ref.

wifi-01
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 @hugeicons-animated/wifi-01

Requires @hugeicons-animated in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { Wifi01Icon } from '@/components/icons/wifi-01';export function WifiStatus() {  return <Wifi01Icon size={24} className='text-emerald-500' />;}
  • Showing network, Wi-Fi, or connectivity status in navbars, settings pages, or device status panels where a playful hover cue is wanted.
  • Adding a micro-interaction to a button, card, or menu item that contains a wifi or signal indicator.
  • Driving the signal animation from application state (for example, while a connection is being established) through the imperative ref handle.
  • Replacing a static wifi icon with an animated one when the design calls for motion feedback, while keeping prefers-reduced-motion respected.

Examples

Basic hover icon

Plays the outward wifi pulse while the pointer is over the icon.

basic-hover-icon.tsx
import { Wifi01Icon } from '@/components/icons/wifi-01';export function Basic() {  return <Wifi01Icon />;}

Sized and colored with className

size sets the SVG width and height in pixels. Color comes from currentColor, so className on the wrapper div controls it.

sized-and-colored-with-classname.tsx
import { Wifi01Icon } from '@/components/icons/wifi-01';export function Colored() {  return <Wifi01Icon size={40} className='text-sky-500' />;}

Controlled through a ref

Calling startAnimation and stopAnimation from the ref disables the hover handlers for this instance, so the animation follows application state instead of the pointer.

controlled-through-a-ref.tsx
import { useEffect, useRef } from 'react';import { Wifi01Icon } from '@/components/icons/wifi-01';import type { Wifi01IconHandle } from '@/components/icons/wifi-01';export function Connecting({ connecting }: { connecting: boolean }) {  const ref = useRef<Wifi01IconHandle>(null);  useEffect(() => {    if (connecting) ref.current?.startAnimation();    else ref.current?.stopAnimation();  }, [connecting]);  return <Wifi01Icon ref={ref} size={20} />;}

Inside a button

Hovering the button triggers the icon animation because the handlers sit on the wrapper div that contains the SVG.

inside-a-button.tsx
import { Wifi01Icon } from '@/components/icons/wifi-01';export function WifiButton() {  return (    <button type='button' className='inline-flex items-center gap-2 rounded-md border px-3 py-2 text-sm'>      <Wifi01Icon size={16} />      Connected    </button>  );}

API reference

PropTypeDefaultDescription
sizenumber28Width and height of the SVG in pixels. The viewBox stays 0 0 24 24.
classNamestring—Class names applied to the outer wrapper div (passed through cn). Use it for color via currentColor, margins, and so on.
onMouseEnterMouseEventHandler<HTMLDivElement>—Called before the built-in hover animation starts. The animation still runs unless the ref has been used to control the icon.
onMouseLeaveMouseEventHandler<HTMLDivElement>—Called before the built-in leave handler stops the loop and resets the icon to rest. Skipped in ref-controlled mode.
refRef<Wifi01IconHandle>—Exposes startAnimation() and stopAnimation(). Using the ref switches the instance to controlled mode, so hover no longer starts or stops the animation.
...HTMLAttributes<HTMLDivElement>HTMLAttributes<HTMLDivElement>—All other standard div attributes (id, style, aria-*, data-*, event handlers, and so on) are spread onto the wrapper div, not the SVG.

Accessibility

  • The SVG has no role, title, or aria-label. If the icon conveys meaning, add aria-label or a visually hidden label on the wrapper, for example <Wifi01Icon aria-label='Wi-Fi connected' role='img' />.
  • If the icon is purely decorative next to visible text, pass aria-hidden='true' so screen readers skip it.
  • The animation is hover-driven and the wrapper div is not focusable, so keyboard-only users get no animation cue. Do not rely on the motion alone to communicate state.
  • When the user has prefers-reduced-motion enabled, useReducedMotion makes startAnimation a no-op, so the icon stays static on hover and through the ref.
  • Animation is limited to transform and visibility on the SVG paths. Avoid placing essential information only in the motion.

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 "wifi-01" component (hugeicons-animated/wifi-01) from its shadcn registry.1. Install it with: npx shadcn@latest add @hugeicons-animated/wifi-012. 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, onMouseEnter, onMouseLeave, ref, ...HTMLAttributes<HTMLDivElement>.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { Wifi01Icon } from '@/components/icons/wifi-01';export function WifiStatus() {  return <Wifi01Icon size={24} className='text-emerald-500' />;}```

Files & dependencies

  • icons/wifi-01.tsx
  • lib/use-icon-animation.ts
dependenciesmotion

Looks similar, elsewhere