Skip to content
Cuelark UI

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

css.gg · CgAlignCenter

Align Center icon

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

/**
 * Align Center from css.gg (https://github.com/astrit/css.gg), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/css-gg/align-center. Sized in em, colored by currentColor.
 */
export function CgAlignCenterIcon(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="M9 13H15V17H9V13Z" fill="currentColor" fillOpacity="0.5" />
      <path d="M6 7H18V11H6V7Z" fill="currentColor" />
    </svg>
  );
}
With react-icons
import { CgAlignCenter } from "react-icons/cg";

export function Example() {
  return <CgAlignCenter className="size-5" />;
}
align-center.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="M9 13H15V17H9V13Z" fill="currentColor" fill-opacity="0.5" />
  <path d="M6 7H18V11H6V7Z" fill="currentColor" />
</svg>
Attribution
"Align Center" icon from css.gg (https://github.com/astrit/css.gg), licensed under MIT license.

Related icons:

Align Center icon in other sets