0.0.33 • Published 4 years ago

govil-section-topics v0.0.33

Weekly downloads
185
License
MIT
Repository
-
Last release
4 years ago

section-topics

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-topics".

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

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

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

import SectionIconTopics from 'section-topics'
...

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

import * from 'section-topics'
...

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 SectionIconTopics from 'section-topics'

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

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

0.0.32

4 years ago

0.0.33

4 years ago

0.0.25

4 years ago

0.0.30

4 years ago

0.0.31

4 years ago

0.0.26

4 years ago

0.0.27

4 years ago

0.0.24

4 years ago

0.0.22

4 years ago

0.0.23

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago