0.0.22 • Published 2 years ago

govil-strip-4-news v0.0.22

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

section-icon-boxes

A simple React component that displays boxes of links with icons inside

How to use

Clone this repo to your local computer, then run:

  • npm install && npm run build

  • To make this component available to other projects on your local computer, run yarn link.

  • Then go to the project where you want to use this package and run yarn link "section-icon-boxes".

Finally, to fix the multiple copies of React bug that shows up with linked React packages:

  • navigate to the root of the section-icon-boxes package
  • run npm link "../path/to/your/project"

You can now import section-icon-boxes as a normal package installed from npm like so:

import SectionIconBoxes from 'section-icon-boxes'
...

You can also import the type definitions if you're using TypeScript like so:

import * from 'section-icon-boxes'
...

Available props

className: string (optional)

To customise this component, pass in a class name to the className prop and style that class name in your custom CSS.

// your-component.js
import SectionIconBoxes from 'section-icon-boxes'

...
<SectionIconBoxes className="dummy" />
...

This component was built for an article on how to publish a React component as a package to npm.

0.0.22

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.10

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago