Skip to content
Cuelark UI

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

Radix Icons · RxSquare

Square icon

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

/**
 * Square from Radix Icons (https://icons.radix-ui.com), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/radix/square. Sized in em, colored by currentColor.
 */
export function RxSquareIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      fill="none"
      viewBox="0 0 15 15"
      stroke="currentColor"
      fill="currentColor"
      strokeWidth="0"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path d="M14 14H1V1H14V14ZM2 13H13V2H2V13Z" fill="currentColor" />
    </svg>
  );
}
With react-icons
import { RxSquare } from "react-icons/rx";

export function Example() {
  return <RxSquare className="size-5" />;
}
square.svg
<svg
  fill="none"
  viewBox="0 0 15 15"
  stroke="currentColor"
  fill="currentColor"
  stroke-width="0"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <path d="M14 14H1V1H14V14ZM2 13H13V2H2V13Z" fill="currentColor" />
</svg>
Attribution
"Square" icon from Radix Icons (https://icons.radix-ui.com), licensed under MIT license.

Related icons:

Square icon in other sets