Skip to content

phothinmg/lwe8-icons-react

Repository files navigation

React Icons from Simple Icons

Checked with Biome

Install

npm i lwe8-icons-react
pnpm i lwe8-icons-react
yarn add lwe8-icons-react

Use

import { ReactIcon, ReactSocialIcon } from "lwe8-icons-react";

export function Home() {
  return (
    <main>
      <ReactIcon
        name="next-js"
        size={36}
        fillColor="#673ab8"
        fillOpacity={0.9}
        title="next-js"
      />
      <ReactSocialIcon
        name="github"
        href="https://github.com/"
        target="_blank"
        size={36}
        fillColor="#673ab8"
        fillOpacity={0.9}
        title="Link to my github profile"
      />
    </main>
  );
}

Options

Name Description Default
name Name of icon
href HTML Anchor Element Attribute "href" for <ReactSocialIcon/> only "https://example.com"
target HTML Anchor Element Attribute "target"for <ReactSocialIcon/> only "_blank"
title Tooltip text for icon name of icon
size Size for icon 24
fillColor Color for icon "currentcolor"
fillOpacity Opacity of icon. 0.1 to 1 0.7

Acknowledgments

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published