On this page
Angular Image Component
Angular image directive with responsive behavior (so it never becomes larger than their parent element) and special styles.
Examples
Responsive images
Images in CoreUI for Angular are made responsive withfluid
property. This appliesmax-width: 100%;
andheight: auto;
to the image so that it scales with the parent element.

Loading...
Loading...
Image thumbnails
In addition to ourborder-radius utilities, you can use propthumbnail
to give an image a rounded 1px border appearance.

Loading...
Loading...
Rounded Image
Give an image arounded
border appearance.


Loading...
Loading...
Aligning images
Align images with thealign
property.


Loading...
Loading...

Loading...
Loading...

Loading...
Loading...
API reference
Image Module
import { ImgModule } from '@coreui/angular';@NgModule({ imports: [ImgModule,]})export class AppModule(){}
cImg
directive
name | description | type | default |
---|---|---|---|
align | Set the horizontal aligment. | "" |"start" |"end" |"center" | "" |
fluid | Make image responsive. | boolean | false |
rounded | Make image rounded. | boolean | false |
thumbnail | Give an image a rounded 1px border appearance. | boolean | false |