generic-reusable-components
v1.0.19
Published
generic reusable react components like navbar, hero section, button, form, footer, card etc.
Downloads
15
Readme
generic-reusable-components
generic reusable react components like navbar, hero section, button, form, footer, card etc.
Install
npm install --save generic-reusable-components
Usage
import React, { Component } from 'react'
import { Nav } from 'generic-reusable-components'
class Example extends Component {
render() {
return <Nav />
}
}
Hooks
import React from 'react'
import { Nav } from 'generic-reusable-components'
const Example = () => {
return <Nav />
}
Props
Nav
Prop | Type | Optional/Mandatory
--- | --- | ---
children | components | optional
logo | component | mandatory
links | Object | mandatory
linkItemMargin | String | optional
linkFontSize | String | optional
linkColor | String | optional
containerPadding | String | optional
containerBgColor | String | optional
containerHeight | String | optional
*(each link can have the following properties: "to", "text" and "icon")
License
MIT © dandan-drori