← Back

Font Bold

Install

npm install @svg-animated-icons/react

CLI

Copy an icon component straight into your project — shadcn-style. Replace {icon} with an icon name like arrow-left.

terminal
npx @svg-animated-icons/cli add {icon} --react
FlagDescription
--dest <dir>Destination directory (default: components/animated-icons)

Or copy the component with the CLI

CLI
npx @svg-animated-icons/cli add font-bold --react

Code

React
// Generated by @svg-animated-icons/cli
// You own this file — edit it freely.

import React from "react";

type Props = {
  disableHover?: boolean;
  className?: string;
};

export function FontBoldIcon({ disableHover, className }: Props) {
  const classes = [
    "ai-font-bold-icon",
    disableHover ? "no-hover" : "",
    className ?? "",
  ]
    .filter(Boolean)
    .join(" ");

  return (
    <>
      <style>{`
.ai-font-bold-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  cursor: pointer;
  overflow: visible;
}

.ai-font-bold-icon * {
  transform-box: fill-box;
}

.ai-font-bold-icon.no-hover * {
  transform: none;
  opacity: 1;
  animation: none;
}

.ai-font-bold-icon .letter {
  transform-box: view-box;
  transform-origin: 7.5px 7.5px;
}

.ai-font-bold-icon:not(.no-hover):hover .letter {
  animation: ai-font-bold-rock 700ms ease-in-out;
}

@keyframes ai-font-bold-rock {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="letter" d="M9.02832 3C10.1371 3 11.0537 3.98152 11.0537 5.18457C11.0537 6.08498 10.6035 6.81887 9.70312 7.23633C10.8656 7.44882 11.5176 8.62804 11.5176 9.48145C11.5175 10.5126 10.9901 12 9.27734 12H5.10547C4.70868 12 4.42388 11.9121 4.25195 11.7363C4.08417 11.5563 4.00002 11.2716 4 10.8828V4.11719C4.00002 3.72026 4.08594 3.43555 4.25781 3.26367C4.43381 3.08778 4.71676 3 5.10547 3H9.02832ZM5.7998 10.6309H8.37891C8.89999 10.6309 9.62985 10.1211 9.62988 9.29883C9.62988 8.47649 8.9 8.00293 8.37891 8.00293H5.7998V10.6309ZM5.7998 6.69531H8.17969C8.53906 6.69531 9.27734 6.35938 9.27734 5.5C9.27733 4.64064 8.48047 4.36914 8.17969 4.36914H5.7998V6.69531Z" fill="currentColor"/>
      </svg>
    </>
  );
}