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 · CgFormatText

Format Text icon

A free format text 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/format-text.json
components/icons/css-gg-format-text.tsx
import * as React from "react";

/**
 * Format Text from css.gg (https://github.com/astrit/css.gg), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/css-gg/format-text. Sized in em, colored by currentColor.
 */
export function CgFormatTextIcon(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="M6.5 3H3V6.5H4V4H6.5V3Z" fill="currentColor" />
      <path d="M8.5 4V3H11V4H8.5Z" fill="currentColor" />
      <path d="M13 4H15.5V3H13V4Z" fill="currentColor" />
      <path d="M17.5 3V4H20V6.5H21V3H17.5Z" fill="currentColor" />
      <path d="M21 8.5H20V11H21V8.5Z" fill="currentColor" />
      <path d="M21 13H20V15.5H21V13Z" fill="currentColor" />
      <path d="M21 17.5H20V20H17.5V21H21V17.5Z" fill="currentColor" />
      <path d="M15.5 21V20H13V21H15.5Z" fill="currentColor" />
      <path d="M11 21V20H8.5V21H11Z" fill="currentColor" />
      <path d="M6.5 21V20H4V17.5H3V21H6.5Z" fill="currentColor" />
      <path d="M3 15.5H4V13H3V15.5Z" fill="currentColor" />
      <path d="M3 11H4V8.5H3V11Z" fill="currentColor" />
      <path d="M11 9.5H7V7.5H17V9.5H13V16.5H11V9.5Z" fill="currentColor" />
    </svg>
  );
}
With react-icons
import { CgFormatText } from "react-icons/cg";

export function Example() {
  return <CgFormatText className="size-5" />;
}
format-text.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="M6.5 3H3V6.5H4V4H6.5V3Z" fill="currentColor" />
  <path d="M8.5 4V3H11V4H8.5Z" fill="currentColor" />
  <path d="M13 4H15.5V3H13V4Z" fill="currentColor" />
  <path d="M17.5 3V4H20V6.5H21V3H17.5Z" fill="currentColor" />
  <path d="M21 8.5H20V11H21V8.5Z" fill="currentColor" />
  <path d="M21 13H20V15.5H21V13Z" fill="currentColor" />
  <path d="M21 17.5H20V20H17.5V21H21V17.5Z" fill="currentColor" />
  <path d="M15.5 21V20H13V21H15.5Z" fill="currentColor" />
  <path d="M11 21V20H8.5V21H11Z" fill="currentColor" />
  <path d="M6.5 21V20H4V17.5H3V21H6.5Z" fill="currentColor" />
  <path d="M3 15.5H4V13H3V15.5Z" fill="currentColor" />
  <path d="M3 11H4V8.5H3V11Z" fill="currentColor" />
  <path d="M11 9.5H7V7.5H17V9.5H13V16.5H11V9.5Z" fill="currentColor" />
</svg>
Attribution
"Format Text" icon from css.gg (https://github.com/astrit/css.gg), licensed under MIT license.

Related icons: