1.0.50 • Published 11 months ago

@beincom/web-icons v1.0.50

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Beincom Icons

Visit beincom-web-ui.vercel.app/?path=/docs/icons to browse the icons.


Documentation

All icons are available as individual React components.

Install Beincom Icons from npm:

npm install @beincom/web-icons

Import the icons into your React project:

import { ScanIcon } from '@beincom/web-icons'

function MyComponent() {
    return (
        <div>
            <ScanIcon />
        </div>
    )
}

If your project grows in size, this option is available.

import ScanIcon from '@beincom/web-icons/dist/icons/ScanIcon'

function MyComponent() {
    return (
        <div>
            <ScanIcon />
        </div>
    )
}

With Dynamic Imports

import React, { lazy, Suspense } from 'react'
import { type IconProps } from '@beincom/web-ui'
import dynamicIconImports from '@beincom/web-ui/dist/dynamicIconImports'

const fallback = <div style={{ background: '#ddd', width: 24, height: 24 }} />

interface IconProps extends Omit<IconProps, 'ref'> {
    name: keyof typeof dynamicIconImports
}

const Icon = ({ name, ...props }: IconProps) => {
    const BeincomIcon = lazy(dynamicIconImports[name])

    return (
        <Suspense fallback={fallback}>
            <BeincomIcon {...props} />
        </Suspense>
    )
}

export default Icon
1.0.50

11 months ago

1.0.49

12 months ago

1.0.44

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.9

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.23

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.37

1 year ago

1.0.34

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.40

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago