Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@si-components/preact

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@si-components/preact

preact component for simple-icons

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@si-components/preact

simple-icons component for Preact

Installation

npm i @si-components/preact simple-icons

simple-icons must be installed as a peer dependency.

Usage

import SIIcon from '@si-components/preact'
// import icon from simple-icons
import reactIcon from 'simple-icons/icons/react'

const Component = () => (
  <>
    {/* pass icon into component */}
    <SIIcon icon={reactIcon} />

    {/* extra attributes are passed to svg */}
    <SIIcon
      icon={reactIcon}
      width="100"
      height="100"
      color={`#${reactIcon.hex}`}
    />
  </>
)

Keywords

simple-icons

FAQs

Package last updated on 05 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts