@@ -8,6 +8,10 @@ A React image component. Simple realization of image shadow.
88
99Online: https://image-component.github.io/react-image-shadow/
1010
11+ ## 🌀 Template
12+
13+ https://github.com/one-template/react-component-template
14+
1115## 📦 Install
1216
1317``` bash
@@ -31,15 +35,16 @@ export default () => (
3135
3236## 📔 API
3337
34- | Property | Description | Type | Required | Default |
35- | ------------ | ----------------------------------- | ------------- | -------- | ------- |
36- | className | Component extra class. | string | ✖ | - |
37- | shadowBlur | The shadow blur of the image. | number | ✖ | 20 |
38- | shadowHover | Whether to support the mouse hover. | boolean | ✖ | false |
39- | shadowRadius | The border radius of the image. | number | ✖ | 8 |
40- | src | The src of the image. | string | ✔ | - |
41- | style | Component extra style. | CSSProperties | ✖ | - |
42- | width | The width of the image. | number | ✖ | 300 |
38+ | Property | Description | Type | Required | Default | Version |
39+ | ------------ | ----------------------------------- | ------------- | -------- | ------- | ------- |
40+ | alt | The alt of the image. | string | ✖ | - | 1.1.0 |
41+ | className | Component extra class. | string | ✖ | - | 1.0.0 |
42+ | shadowBlur | The shadow blur of the image. | number | ✖ | 20 | 1.0.0 |
43+ | shadowHover | Whether to support the mouse hover. | boolean | ✖ | false | 1.0.0 |
44+ | shadowRadius | The border radius of the image. | number | ✖ | 8 | 1.0.0 |
45+ | src | The src of the image. | string | ✔ | - | 1.0.0 |
46+ | style | Component extra style. | CSSProperties | ✖ | - | 1.0.0 |
47+ | width | The width of the image. | number | ✖ | 300 | 1.0.0 |
4348
4449## 🔨 Development
4550
0 commit comments