Hover the icon or press Play. Suggested motion: pop. Pick another to preview it and update the animated code:
Collapse icon
A free collapse icon from Flat Color Icons, 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/flat-color/collapse.jsonimport * as React from "react";
/**
* Collapse from Flat Color Icons (https://github.com/icons8/flat-color-icons), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/flat-color/collapse. Sized in em, colored by currentColor.
*/
export function FcCollapseIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
version="1"
viewBox="0 0 48 48"
enableBackground="new 0 0 48 48"
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<polygon fill="#2196F3" points="5,30.9 8.1,34 24,18.1 39.9,34 43,30.9 24,12" />
</svg>
);
}import { FcCollapse } from "react-icons/fc";
export function Example() {
return <FcCollapse className="size-5" />;
}<svg
version="1"
viewBox="0 0 48 48"
enable-background="new 0 0 48 48"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<polygon fill="#2196F3" points="5,30.9 8.1,34 24,18.1 39.9,34 43,30.9 24,12" />
</svg>"Collapse" icon from Flat Color Icons (https://github.com/icons8/flat-color-icons), licensed under MIT license.