File Plus
Install
npm install @svg-animated-icons/reactCLI
Copy an icon component straight into your project — shadcn-style. Replace {icon} with an icon name like arrow-left.
terminal
npx @svg-animated-icons/cli add {icon} --react| Flag | Description |
|---|---|
--dest <dir> | Destination directory (default: components/animated-icons) |
Or copy the component with the CLI
CLI
npx @svg-animated-icons/cli add file-plus --reactCode
React
// Generated by @svg-animated-icons/cli
// You own this file — edit it freely.
import React from "react";
type Props = {
disableHover?: boolean;
className?: string;
};
export function FilePlusIcon({ disableHover, className }: Props) {
const classes = [
"ai-file-plus-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-file-plus-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-file-plus-icon * {
transform-box: fill-box;
}
.ai-file-plus-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-file-plus-icon .plus {
transform-box: view-box;
transform-origin: 7.5px 7.5px;
}
.ai-file-plus-icon:not(.no-hover):hover .plus {
animation: ai-file-plus-rotate 700ms ease-in-out;
}
@keyframes ai-file-plus-rotate {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(90deg); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="body" d="M9.59766 1.00977C9.69389 1.02894 9.78311 1.07608 9.85352 1.14648L12.7803 4.07324C12.9209 4.21389 13 4.40462 13 4.60352V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5C2 1.67157 2.67157 1 3.5 1H9.5L9.59766 1.00977ZM3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V4.70703L9.29297 2H3.5Z" fill="currentColor"/>
<path className="plus" d="M7.5 4.75C7.77614 4.75 8 4.97386 8 5.25V7H9.75C10.0261 7 10.25 7.22386 10.25 7.5C10.25 7.77614 10.0261 8 9.75 8H8V9.75C8 10.0261 7.77614 10.25 7.5 10.25C7.22386 10.25 7 10.0261 7 9.75V8H5.25C4.97386 8 4.75 7.77614 4.75 7.5C4.75 7.22386 4.97386 7 5.25 7H7V5.25C7 4.97386 7.22386 4.75 7.5 4.75Z" fill="currentColor"/>
</svg>
</>
);
}