CoreUI Angular Logo
Framework:
  • JavaScript / Vanilla JS
  • React.js
  • Vue.js
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewDate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DashboardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
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 with fluid property. This applies max-width: 100%; and height: auto; to the image so that it scales with the parent element.

    Loading...
    Loading...

    Image thumbnails

    In addition to our border-radius utilities, you can use prop thumbnail to give an image a rounded 1px border appearance.

    Loading...
    Loading...

    Rounded Image

    Give an image a rounded border appearance.

    Loading...
    Loading...

    Aligning images

    Align images with the align 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
    • GitHub
    • Twitter
    • Support
    • CoreUI (Vanilla)
    • CoreUI for React.js
    • CoreUI for Vue.js

    CoreUI for Angular is Open Source UI Components Library for Angular.

    Currently v5.5.2 Code licensed MIT , docs CC BY 3.0 .
    CoreUI PRO requires a commercial license.