@ltht-react/banner 2.0.1 → 2.0.2

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 +28 -28
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,28 +1,28 @@
1
- # Banner
2
-
3
- ### Import
4
-
5
- ```js
6
- import Banner from '@ltht-react/banner'
7
- ```
8
-
9
- ### Usage
10
-
11
- ```jsx
12
- <Banner type="info">
13
- This is an info alert with{' '}
14
- <a href="#" class="alert-link">
15
- an example link
16
- </a>
17
- .
18
- </Banner>
19
- ```
20
-
21
- ### Properties
22
-
23
- | Prop | Required | Default | Type | Description |
24
- | :--------- | :------- | :------ | :----------------------------- | :---------------------------------------------------- |
25
- | `type` | No | 'info' | 'info', 'danger', 'warning' | Type of styling for the banner |
26
- | `icon` | No | None | ReactNode | Custom <Icon /> to render |
27
- | `children` | No | None | Element | Child elements to render within the banner |
28
- | `...rest` | No | None | HTMLAttributes<HTMLDivElement> | Any additional props supported by an HTML Div Element |
1
+ # Banner
2
+
3
+ ### Import
4
+
5
+ ```js
6
+ import Banner from '@ltht-react/banner'
7
+ ```
8
+
9
+ ### Usage
10
+
11
+ ```jsx
12
+ <Banner type="info">
13
+ This is an info alert with{' '}
14
+ <a href="#" class="alert-link">
15
+ an example link
16
+ </a>
17
+ .
18
+ </Banner>
19
+ ```
20
+
21
+ ### Properties
22
+
23
+ | Prop | Required | Default | Type | Description |
24
+ | :--------- | :------- | :------ | :----------------------------- | :---------------------------------------------------- |
25
+ | `type` | No | 'info' | 'info', 'danger', 'warning' | Type of styling for the banner |
26
+ | `icon` | No | None | ReactNode | Custom <Icon /> to render |
27
+ | `children` | No | None | Element | Child elements to render within the banner |
28
+ | `...rest` | No | None | HTMLAttributes<HTMLDivElement> | Any additional props supported by an HTML Div Element |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ltht-react/banner",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "ltht-react Banner Component.",
5
5
  "author": "LTHT",
6
6
  "homepage": "",
@@ -27,11 +27,11 @@
27
27
  "dependencies": {
28
28
  "@emotion/react": "^11.0.0",
29
29
  "@emotion/styled": "^11.0.0",
30
- "@ltht-react/icon": "^2.0.1",
31
- "@ltht-react/styles": "^2.0.1",
32
- "@ltht-react/types": "^2.0.1",
33
- "@ltht-react/utils": "^2.0.1",
30
+ "@ltht-react/icon": "^2.0.2",
31
+ "@ltht-react/styles": "^2.0.2",
32
+ "@ltht-react/types": "^2.0.2",
33
+ "@ltht-react/utils": "^2.0.2",
34
34
  "react": "^18.2.0"
35
35
  },
36
- "gitHead": "85a8f6972deb11dbfb51869c53a7a6a5063596e9"
36
+ "gitHead": "c1487e107fcc3e16a95a65393cfb673ab92db352"
37
37
  }