Panel Bottom
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-bottom --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 PanelBottomIcon({ disableHover, className }: Props) {
const classes = [
"ai-panel-bottom-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-panel-bottom-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-panel-bottom-icon * {
transform-box: fill-box;
}
.ai-panel-bottom-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-panel-bottom-icon .dash {
transform-origin: center;
}
.ai-panel-bottom-icon:not(.no-hover):hover .dash {
animation: ai-panel-bottom-slide 700ms ease-in-out;
}
@keyframes ai-panel-bottom-slide {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(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="M1 8H14V9H1V8Z" fill="currentColor"/>
</svg>
</>
);
}