Build with
React and Next.js
Generated components and their props.
Every exported component is a plain function with no runtime dependency. Copy one from any icon page, or generate it with the CLI.
import { Bell } from "@/components/icons/bell";
export function Notifications() {
return (
<button aria-label="Notifications">
<Bell size={20} />
</button>
);
}Props
| Prop | Default | Notes |
|---|---|---|
size | 24 | Pixels, or any CSS length such as "1.25em". |
className | Added after the motion class, so Tailwind works. | |
| Any SVG prop | style, onClick, aria-* and data-* go to the <svg>. |
Server components
Components have no hooks or browser APIs, so they render in React Server Components as they are. Motion is CSS, so it works before hydration.
Static only
Pass --static to the CLI, or untick “Keep the motion” on an icon page, to get a component with no <style> element.