Commit ed1d7c6
authored
fix: add imageWidth & imageHeight properties on Tile (#108)
The proposed change for the Tile component involves adding a feature to specify the width and height of the optional image.
I added imageWidth & imageHeight optionnal properties to follow the imageUrl & imageAlt pattern.
I'll make another suggestion : introduce an imageProps object, similar to the existing linkProps object, which would provide greater flexibility and control over the image properties.
I am open to discussing this further.
Signed-off-by: Clément Lelong <clement@numericite.eu>1 parent 054fb4b commit ed1d7c6
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| 95 | + | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
0 commit comments