@map2usdnbhd/md_components 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +41 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,24 +7,54 @@
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install --save md_components
10
+ npm install @map2usdnbhd/md_components
11
11
  ```
12
12
 
13
- ## Usage
13
+ ## Install CSS
14
14
 
15
- ```jsx
16
- import React, { Component } from 'react'
15
+ ```bash
16
+ import '@map2usdnbhd/md_components/dist/index.css'
17
+ ```
17
18
 
18
- import MyComponent from 'md_components'
19
- import 'md_components/dist/index.css'
19
+ ## Usage
20
20
 
21
- class Example extends Component {
22
- render() {
23
- return <MyComponent />
24
- }
21
+ ```jsx
22
+ import { NavbarBlueprint } from '@map2usdnbhd/md_components'
23
+
24
+ const App = () => {
25
+ return (
26
+ <NavbarBlueprint
27
+ ImageLogo='https://pbs.twimg.com/profile_images/2200593169/logo_baru_400x400.png'
28
+ ImgStatus
29
+ ListNav={[
30
+ {
31
+ icon: '',
32
+ link: '#',
33
+ title: 'Utama'
34
+ },
35
+ {
36
+ icon: '',
37
+ link: '#',
38
+ title: 'Profil MPK'
39
+ },
40
+ {
41
+ icon: 'chart',
42
+ link: '#',
43
+ title: 'Peta MPK'
44
+ },
45
+ {
46
+ icon: '',
47
+ link: '#',
48
+ title: 'Hubungi Kami'
49
+ }
50
+ ]}
51
+ label='Majlis Perbandaran Kangar'
52
+ onLogOut={() => {}}
53
+ />
54
+ )
25
55
  }
26
56
  ```
27
57
 
28
58
  ## License
29
59
 
30
- MIT © [nafzaa](https://github.com/nafzaa)
60
+ MIT © [map2uSdnBhd](https://github.com/Map2u-Sdn-Bhd/MD_Components)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@map2usdnbhd/md_components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "map2u md components",
5
5
  "author": "nafzaa",
6
6
  "license": "MIT",