Skip to content
Cuelark UI

Hover the icon or press Play. Suggested motion: pop. Pick another to preview it and update the animated code:

VS Code Icons · VscCollapseAllCompact

Collapse All Compact icon

A free collapse all compact icon from VS Code 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
CC BY 4.0 license
Project
github.com
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/vscode-codicons/collapse-all-compact.json
components/icons/vscode-codicons-collapse-all-compact.tsx
import * as React from "react";

/**
 * Collapse All Compact from VS Code Icons (https://github.com/microsoft/vscode-codicons), CC BY 4.0.
 * Via Cuelark UI: ui.cuelark.com/icons/vscode-codicons/collapse-all-compact. Sized in em, colored by currentColor.
 */
export function VscCollapseAllCompactIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      viewBox="0 0 12 12"
      stroke="currentColor"
      fill="currentColor"
      strokeWidth="0"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M11 2.08984C11.58 2.28984 12 2.85 12 3.5V8.5C11.9999 10.4299 10.4299 12 8.5 12H3.5C2.85006 12 2.28985 11.5799 2.08984 11H8.5C9.87995 11 10.9999 9.87993 11 8.5V2.08984Z"
      />
      <path
        d="M7.5 4.5C7.78 4.5 8 4.72 8 5C8 5.28 7.78 5.5 7.5 5.5H2.5C2.22 5.5 2 5.28 2 5C2 4.72 2.22 4.5 2.5 4.5H7.5Z"
      />
      <path
        fillRule="evenodd"
        clipRule="evenodd"
        d="M8.5 0C9.33 0 10 0.67 10 1.5V8.5C10 9.33 9.33 10 8.5 10H1.5C0.67 10 0 9.33 0 8.5V1.5C0 0.67 0.67 0 1.5 0H8.5ZM1.5 1C1.22 1 1 1.22 1 1.5V8.5C1 8.78 1.22 9 1.5 9H8.5C8.78 9 9 8.78 9 8.5V1.5C9 1.22 8.78 1 8.5 1H1.5Z"
      />
    </svg>
  );
}
With react-icons
import { VscCollapseAllCompact } from "react-icons/vsc";

export function Example() {
  return <VscCollapseAllCompact className="size-5" />;
}
collapse-all-compact.svg
<svg
  viewBox="0 0 12 12"
  stroke="currentColor"
  fill="currentColor"
  stroke-width="0"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    d="M11 2.08984C11.58 2.28984 12 2.85 12 3.5V8.5C11.9999 10.4299 10.4299 12 8.5 12H3.5C2.85006 12 2.28985 11.5799 2.08984 11H8.5C9.87995 11 10.9999 9.87993 11 8.5V2.08984Z"
  />
  <path
    d="M7.5 4.5C7.78 4.5 8 4.72 8 5C8 5.28 7.78 5.5 7.5 5.5H2.5C2.22 5.5 2 5.28 2 5C2 4.72 2.22 4.5 2.5 4.5H7.5Z"
  />
  <path
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M8.5 0C9.33 0 10 0.67 10 1.5V8.5C10 9.33 9.33 10 8.5 10H1.5C0.67 10 0 9.33 0 8.5V1.5C0 0.67 0.67 0 1.5 0H8.5ZM1.5 1C1.22 1 1 1.22 1 1.5V8.5C1 8.78 1.22 9 1.5 9H8.5C8.78 9 9 8.78 9 8.5V1.5C9 1.22 8.78 1 8.5 1H1.5Z"
  />
</svg>
Attribution
"Collapse All Compact" icon from VS Code Icons (https://github.com/microsoft/vscode-codicons), licensed under CC BY 4.0 license.

Related icons: chevron, caret, angle, arrow