The b.Image
constructor creates a Bulma image element.
Modifier | Action |
---|---|
b.ImgSq16 | Fixed square image, of 16x16px |
b.ImgSq24 | Fixed square image, of 24x24px |
b.ImgSq32 | Fixed square image, of 32x32px |
b.ImgSq48 | Fixed square image, of 48x48px |
b.ImgSq64 | Fixed square image, of 64x64px |
b.ImgSq96 | Fixed square image, of 96x96px |
b.ImgSq128 | Fixed square image, of 128x128px |
b.ImgSquare | Force image ratio to square |
b.Img1By1 | Force image ratio to 1 by 1 |
b.Img5By4 | Force image ratio to 5 by 4 |
b.Img4By3 | Force image ratio to 4 by 3 |
b.Img3By2 | Force image ratio to 3 by 2 |
b.Img5By3 | Force image ratio to 5 by 3 |
b.Img16By9 | Force image ratio to 16 by 9 |
b.Img2By1 | Force image ratio to 2 by 1 |
b.Img3By1 | Force image ratio to 3 by 1 |
b.Img4By5 | Force image ratio to 4 by 5 |
b.Img3By4 | Force image ratio to 3 by 4 |
b.Img2By3 | Force image ratio to 2 by 3 |
b.Img3By5 | Force image ratio to 3 by 5 |
b.Img9By16 | Force image ratio to 9 by 16 |
b.Img1By2 | Force image ratio to 1 by 2 |
b.Img1By3 | Force image ratio to 1 by 3 |
b.FullWidth | Make the image take the whole width of its container |
Use e.ImgSrc
to create an <img>
element with the provided URL as its src attribute. Apply b.Rounded
to the inner image to make it rounded, associated with an b.Img*By*
modifier on the b.Image
element. Apply b.Ratio
to an inner element to apply the parent ratio to that element.
The b.ImageImg
constructor creates a Bulma image element with an inner <img>
. It accepts the same modifiers as b.Image
.
Child | Action |
---|---|
b.OnImg(...any) | Apply children to the <img> element |
b.OnFigure(...any) | Apply children to the <figure> element |
b.Rounded | Make the image rounded (class applied to the <img> element) |
b.ImgAlt | Define the image alt text |
Anything else | Apply children to the <figure> element |