Images
Shape
Use the rounded, roundedCircle and thumbnail props to customise the image.
Fluid
Use the fluid to scale image nicely to the parent element.
API
Image
import Image from 'react-bootstrap/Image'Copy import code for the Image component| Name | Type | Default | Description |
|---|---|---|---|
| fluid | boolean |
false |
Sets image as fluid image. |
| rounded | boolean |
false |
Sets image shape as rounded. |
| roundedCircle | boolean |
false |
Sets image shape as circle. |
| thumbnail | boolean |
false |
Sets image shape as thumbnail. |
| bsPrefix | string |
'img' |
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css. |
© 2014–present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff
Licensed under the MIT License (MIT).
https://react-bootstrap.github.io/components/images/