Hover the icon or press Play. Suggested motion: pop. Pick another to preview it and update the animated code:
Ratio icon
A free ratio icon from css.gg, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.
- License
- MIT license
- Project
- github.com
npx shadcn@latest add https://ui.cuelark.com/r/icons/css-gg/ratio.jsonimport * as React from "react";
/**
* Ratio from css.gg (https://github.com/astrit/css.gg), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/css-gg/ratio. Sized in em, colored by currentColor.
*/
export function CgRatioIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M4 6V12H6V8L10 8V6H4Z" fill="currentColor" />
<path d="M20 18H14V16H18V12H20V18Z" fill="currentColor" />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M4 2C1.79086 2 0 3.79086 0 6V18C0 20.2091 1.79086 22 4 22H20C22.2091 22 24 20.2091 24 18V6C24 3.79086 22.2091 2 20 2H4ZM20 4H4C2.89543 4 2 4.89543 2 6V18C2 19.1046 2.89543 20 4 20H20C21.1046 20 22 19.1046 22 18V6C22 4.89543 21.1046 4 20 4Z"
fill="currentColor"
/>
</svg>
);
}import { CgRatio } from "react-icons/cg";
export function Example() {
return <CgRatio className="size-5" />;
}<svg
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M4 6V12H6V8L10 8V6H4Z" fill="currentColor" />
<path d="M20 18H14V16H18V12H20V18Z" fill="currentColor" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M4 2C1.79086 2 0 3.79086 0 6V18C0 20.2091 1.79086 22 4 22H20C22.2091 22 24 20.2091 24 18V6C24 3.79086 22.2091 2 20 2H4ZM20 4H4C2.89543 4 2 4.89543 2 6V18C2 19.1046 2.89543 20 4 20H20C21.1046 20 22 19.1046 22 18V6C22 4.89543 21.1046 4 20 4Z"
fill="currentColor"
/>
</svg>"Ratio" icon from css.gg (https://github.com/astrit/css.gg), licensed under MIT license.