You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: React image component with responsive behavior (so it's never become larger than their parent element) and special styles.
5
+
menu: Components
6
+
route: /components/image
7
+
---
8
+
9
+
import { Playground, Props } from'docz'
10
+
11
+
import { CImage } from'../../../src/index.ts'
12
+
13
+
## Responsive images
14
+
15
+
Images in CoreUI for React.js are made responsive with `fluid` property. This applies `max-width: 100%;` and `height: auto;` to the image so that it scales with the parent element.
16
+
17
+
<Playground>
18
+
<CImagefluidsrc="/public/images/react.jpg" />
19
+
</Playground>
20
+
21
+
## Image thumbnails
22
+
23
+
In addition to our [border-radius utilities](https://coreui.io/docs/4.0/utilities/borders), you can use prop`thumbnail` to give an image a rounded 1px border appearance.
0 commit comments