Skip to content
Cuelark UI

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

css.gg · CgMaximize

Maximize icon

A free maximize 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
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/css-gg/maximize.json
components/icons/css-gg-maximize.tsx
import * as React from "react";

/**
 * Maximize from css.gg (https://github.com/astrit/css.gg), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/css-gg/maximize. Sized in em, colored by currentColor.
 */
export function CgMaximizeIcon(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="M3 3H9V5H5V9H3V3Z" fill="currentColor" />
      <path d="M3 21H9V19H5V15H3V21Z" fill="currentColor" />
      <path d="M15 21H21V15H19V19H15V21Z" fill="currentColor" />
      <path d="M21 3H15V5H19V9H21V3Z" fill="currentColor" />
    </svg>
  );
}
With react-icons
import { CgMaximize } from "react-icons/cg";

export function Example() {
  return <CgMaximize className="size-5" />;
}
maximize.svg
<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="M3 3H9V5H5V9H3V3Z" fill="currentColor" />
  <path d="M3 21H9V19H5V15H3V21Z" fill="currentColor" />
  <path d="M15 21H21V15H19V19H15V21Z" fill="currentColor" />
  <path d="M21 3H15V5H19V9H21V3Z" fill="currentColor" />
</svg>
Attribution
"Maximize" icon from css.gg (https://github.com/astrit/css.gg), licensed under MIT license.

Related icons:

Maximize icon in other sets