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

Captions icon

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

/**
 * Captions from css.gg (https://github.com/astrit/css.gg), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/css-gg/captions. Sized in em, colored by currentColor.
 */
export function CgCaptionsIcon(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="M11 8V10H8V14H11V16H6V8H11Z" fill="currentColor" />
      <path d="M18 8V10H15V14H18V16H13V8H18Z" fill="currentColor" />
      <path
        fillRule="evenodd"
        clipRule="evenodd"
        d="M2 5C2 4.44772 2.44772 4 3 4H21C21.5523 4 22 4.44772 22 5V19C22 19.5523 21.5523 20 21 20H3C2.44772 20 2 19.5523 2 19V5ZM4 18V6H20V18H4Z"
        fill="currentColor"
      />
    </svg>
  );
}
With react-icons
import { CgCaptions } from "react-icons/cg";

export function Example() {
  return <CgCaptions className="size-5" />;
}
captions.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="M11 8V10H8V14H11V16H6V8H11Z" fill="currentColor" />
  <path d="M18 8V10H15V14H18V16H13V8H18Z" fill="currentColor" />
  <path
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M2 5C2 4.44772 2.44772 4 3 4H21C21.5523 4 22 4.44772 22 5V19C22 19.5523 21.5523 20 21 20H3C2.44772 20 2 19.5523 2 19V5ZM4 18V6H20V18H4Z"
    fill="currentColor"
  />
</svg>
Attribution
"Captions" icon from css.gg (https://github.com/astrit/css.gg), licensed under MIT license.

Captions icon in other sets