Skip to content
Cuelark UI

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

Github Octicons icons · GoHorizontalRule

Horizontal Rule icon

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

/**
 * Horizontal Rule from Github Octicons icons (https://octicons.github.com/), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/github-octicons/horizontal-rule. Sized in em, colored by currentColor.
 */
export function GoHorizontalRuleIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      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="M2 12.75a.75.75 0 0 1 .75-.75h18.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z"
      />
    </svg>
  );
}
With react-icons
import { GoHorizontalRule } from "react-icons/go";

export function Example() {
  return <GoHorizontalRule className="size-5" />;
}
horizontal-rule.svg
<svg
  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="M2 12.75a.75.75 0 0 1 .75-.75h18.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z"
  />
</svg>
Attribution
"Horizontal Rule" icon from Github Octicons icons (https://octicons.github.com/), licensed under MIT license.

Related icons:

Horizontal Rule icon in other sets