Something went wrong on our end
readme.md 1.38 KiB
hy-image
Usage
Defaults to 16/9 aspect ratio if none is provided. Caption is optional.
<hy-image
image-url="https://www.helsinki.fi/sites/default/files/styles/16_9_huge/public/coronavirus_1920x1080px_4.jpg?itok=dOgb6pfs"
image-alt="Test image"
aspect-ratio-width=16
aspect-ratio-height=9
caption="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
/>
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
aspectRatioHeight |
aspect-ratio-height |
number |
9 |
|
aspectRatioWidth |
aspect-ratio-width |
number |
16 |
|
caption |
caption |
string |
null |
|
imageAlt |
image-alt |
string |
null |
|
imageUrl |
image-url |
string |
undefined |
Helsinki University Design System