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

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

@si-components/preact

Preact component for simple-icons

Installation

npm install @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 { siReact } from 'simple-icons/icons'

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

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

Keywords

simple-icons

FAQs

Package last updated on 29 Nov 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