react-icons/fa#FaBolt TypeScript Examples

The following examples show how to use react-icons/fa#FaBolt. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Card.tsx    From webapis-playground with MIT License 5 votes vote down vote up
function Card({ data }: CardProps) {
  return (
    <article
      className="
        tw-flex
        tw-flex-col
        tw-items-center
        tw-py-6
        tw-px-6
        tw-text-center
        tw-border
        tw-border-solid
        tw-border-gray-200
        tw-rounded-lg
        tw-bg-white
      "
    >
      <div
        className="
          tw-text-4xl
          tw-mb-4
        "
      >
        {data.emoji}
      </div>

      <h1
        className="
          tw-mb-2
          tw-text-xl
          tw-font-bold
        "
      >
        {data.title}
      </h1>

      <p
        className="
          tw-mb-8
          tw-text-sm
          tw-text-gray-600
          tw-line-clamp-3
        "
      >
        {data.description}
      </p>

      <Link href={`/demo/${data.id}`} passHref>
        <Button as="a" leftIcon={<FaBolt />}>
          Try it
        </Button>
      </Link>
    </article>
  );
}