0.204.0 • Published 2 years ago

@wdkx/icon-react v0.204.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

WDKX react icons

Installation

npm i @wdkx/icon-react

Usage

import React from 'react'
import { Airplane } from "@wdkx/icon-react"

function App() {
    return (
        <div className="app">
            <Airplane />
        </div>
    )
}

Props

You can use inline props to configure icon components

  • size
  • color
import React from 'react'
import { Airplane } from "@wdkx/icon-react"

function App() {
    return (
        <div className="app">
            <h3>Default</h3>
            <Airplane />

            <h3>Size</h3>
            <Airplane size='32px' />
            <Airplane size='2rem' />
            <Airplane size='16%' />
            <Airplane size={32} />

            <h3>Color</h3>
            <Airplane size='2rem' color='blue' />
            <Airplane size='2rem' color='#00f' />
            <Airplane size='2rem' color='rgb(0, 0, 255)' />
        </div>
    )
}