Folder Kanban
An animated folder-kanban icon built on an SVG folder outline with three Kanban-style column lines inside that pulse in a staggered opacity wave on hover or via an imperative handle. It is a drop-in React component powered by motion/react.


Installed with plain
See how it was built shadcn add · no workarounds · theme neutral (none shipped)Installation
pnpm dlx shadcn@latest add https://lucide-animated.com/r/folder-kanban.json
Usage
usage.tsx
import { FolderKanbanIcon } from "@/components/ui/folder-kanban";export function Example() { return <FolderKanbanIcon size={28} className="text-foreground" />;}- Showing project boards, Kanban workflows, task management, or sprint planning sections in a dashboard or navigation menu
- Adding a subtle hover-triggered micro-interaction to a folder or workspace item in a sidebar
- Driving the animation programmatically (e.g. while a board is loading or syncing) through a ref with startAnimation and stopAnimation
- Replacing a static folder-kanban Lucide icon with an interactive animated version in a button or card header
Examples
Basic hover animation
Renders the icon at default size; the columns animate when the pointer enters the wrapper.
basic-hover-animation.tsx
import { FolderKanbanIcon } from "@/components/ui/folder-kanban";export function BasicExample() { return <FolderKanbanIcon />;}Controlled via ref in a button
Starts the animation on demand by calling startAnimation through a ref, and stops it when the operation finishes.
controlled-via-ref-in-a-button.tsx
import { useRef } from "react";import { FolderKanbanIcon, type FolderKanbanIconHandle } from "@/components/ui/folder-kanban";export function SyncButton() { const iconRef = useRef<FolderKanbanIconHandle>(null); return ( <button type="button" className="flex items-center gap-2" onMouseEnter={() => iconRef.current?.startAnimation()} onMouseLeave={() => iconRef.current?.stopAnimation()} > <FolderKanbanIcon ref={iconRef} size={20} /> <span>Projects</span> </button> );}Sidebar navigation item
Uses the icon inside a navigation link with a larger size and theme-aware color.
sidebar-navigation-item.tsx
import { FolderKanbanIcon } from "@/components/ui/folder-kanban";export function SidebarItem() { return ( <a href="/boards" className="flex items-center gap-3 rounded-md p-2 hover:bg-accent"> <FolderKanbanIcon size={20} className="text-muted-foreground" /> <span className="text-sm font-medium">Boards</span> </a> );}API reference
PropTypeDefaultDescription
sizenumber28Width and height of the SVG in pixels.
classNamestring—Class names applied to the wrapping div. Passed through cn().
refReact.Ref<FolderKanbanIconHandle>—Forwarded ref exposing startAnimation() and stopAnimation(). When a ref is attached, the component switches to controlled mode and hover handlers call onMouseEnter/onMouseLeave instead of auto-animating.
onMouseEnter(e: React.MouseEvent<HTMLDivElement>) => void—Mouse enter handler. Called in addition to the built-in animation when uncontrolled; in controlled mode it replaces the built-in animation trigger.
onMouseLeave(e: React.MouseEvent<HTMLDivElement>) => void—Mouse leave handler. Same behavior as onMouseEnter for the leave event.
Accessibility
- The icon is decorative SVG with no role or aria-label; when it conveys meaning, wrap it in an element with an accessible name or add aria-label and role="img" via the spread HTML div props.
- Provide visible text next to the icon in buttons and links so the purpose is announced by screen readers.
- Hover-only animation is not available to keyboard or touch users; do not rely on it to convey state. Use startAnimation through a ref for focus or loading states.
- Respect reduced motion preferences by disabling or shortening the animation in your app when prefers-reduced-motion is set, since the built-in loop repeats indefinitely.
- Color contrast depends on the inherited currentColor; ensure the surrounding text color meets WCAG contrast requirements.
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 "Folder Kanban" component (lucide-animated/folder-kanban) from its shadcn registry.1. Install it with: npx shadcn@latest add https://lucide-animated.com/r/folder-kanban.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.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { FolderKanbanIcon } from "@/components/ui/folder-kanban";export function Example() { return <FolderKanbanIcon size={28} className="text-foreground" />;}```Files & dependencies
- folder-kanban.tsx
dependenciesmotion