Panel Right Minimized
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 panel-right-minimized --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 PanelRightMinimizedIcon({ disableHover, className }: Props) {
const classes = [
"ai-panel-right-minimized-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-panel-right-minimized-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-panel-right-minimized-icon * {
transform-box: fill-box;
}
.ai-panel-right-minimized-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-panel-right-minimized-icon .dash {
transform-origin: center;
}
.ai-panel-right-minimized-icon:not(.no-hover):hover .dash {
animation: ai-panel-right-minimized-slide 700ms ease-in-out;
}
@keyframes ai-panel-right-minimized-slide {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(-1px); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="frame" fillRule="evenodd" d="M1.5 2C0.671573 2 0 2.67157 0 3.5V11.5C0 12.3284 0.671573 13 1.5 13H13.5C14.3284 13 15 12.3284 15 11.5V3.5C15 2.67157 14.3284 2 13.5 2H1.5ZM1.5 3C1.22386 3 1 3.22386 1 3.5V11.5C1 11.77614 1.22386 12 1.5 12H13.5C13.77614 12 14 11.77614 14 11.5V3.5C14 3.22386 13.77614 3 13.5 3H1.5Z" fill="currentColor"/>
<path className="dash" d="M11 4.5C11 4.22386 11.22386 4 11.5 4C11.77614 4 12 4.22386 12 4.5V10.5C12 10.77614 11.77614 11 11.5 11C11.22386 11 11 10.77614 11 10.5V4.5Z" fill="currentColor"/>
</svg>
</>
);
}