Exit Full Screen
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 exit-full-screen --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 ExitFullScreenIcon({ disableHover, className }: Props) {
const classes = [
"ai-exit-full-screen-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-exit-full-screen-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-exit-full-screen-icon * {
transform-box: fill-box;
}
.ai-exit-full-screen-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-exit-full-screen-icon .corner { transform-origin: center; }
.ai-exit-full-screen-icon:not(.no-hover):hover .corner-tl { animation: ai-exit-full-screen-tl 700ms ease-in-out; }
.ai-exit-full-screen-icon:not(.no-hover):hover .corner-tr { animation: ai-exit-full-screen-tr 700ms ease-in-out; }
.ai-exit-full-screen-icon:not(.no-hover):hover .corner-bl { animation: ai-exit-full-screen-bl 700ms ease-in-out; }
.ai-exit-full-screen-icon:not(.no-hover):hover .corner-br { animation: ai-exit-full-screen-br 700ms ease-in-out; }
@keyframes ai-exit-full-screen-tl { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1.25px, 1.25px); } }
@keyframes ai-exit-full-screen-tr { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-1.25px, 1.25px); } }
@keyframes ai-exit-full-screen-bl { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1.25px, -1.25px); } }
@keyframes ai-exit-full-screen-br { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-1.25px, -1.25px); } }
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="corner corner-bl" d="M5.5 9C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5C2 9.22386 2.22386 9 2.5 9H5.5Z" fill="currentColor"/>
<path className="corner corner-br" d="M12.5 9C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5C9 9.22386 9.22386 9 9.5 9H12.5Z" fill="currentColor"/>
<path className="corner corner-tl" d="M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2Z" fill="currentColor"/>
<path className="corner corner-tr" d="M9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2Z" fill="currentColor"/>
</svg>
</>
);
}