CoreUI for Vue.js logo
Angular JavaScript / Vanilla JS React.js
  • undefinedGetting started
  • undefinedCustomize
  • undefinedLayout
  • undefinedForms
  • undefinedComponents
  • undefinedTemplates
  • undefinedMigration
  • undefined
  • undefined
  • undefined
undefinedDownloadundefinedHire Us Get CoreUI PRO

Support CoreUI Development

CoreUI is an MIT-licensed open source project and is completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.

You can support our Open Source software development in the following ways:

  • Buy the CoreUI PRO, and get access to PRO components, and dedicated support.
  • Hire Us! We create stunning designs, high-conversion landing pages, functional mobile apps and reliable web services – everything you need to offer your products or services online and always stay a tap away from your customers.
  • Give us a star ⭐️ on Github.

Vue Image Component

Vue image component with responsive behavior (so it's never become larger than their parent element) and special styles.

Other frameworks

CoreUI components are available as native Angular, Bootstrap (Vanilla JS), and React components. To learn more please visit the following pages.

  • Angular Image
  • Bootstrap Image
  • React Image

Responsive images #

Images in CoreUI for Vue.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.

<CImage fluid src="/images/vue.jpg" />
1

Image thumbnails #

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

<CImage rounded thumbnail src="/images/vue400.jpg" width="200" height="200"/>
1

Aligning images #

Align images with the align property.

<div class="clearfix">
  <CImage align="start" rounded src="/images/vue400.jpg" width="200" height="200"/>
  <CImage align="end" rounded src="/images/vue400.jpg" width="200" height="200"/>
</div>
1
2
3
4
<div class="clearfix">
  <CImage align="center" rounded src="/images/vue400.jpg" width="200" height="200"/>
</div>
1
2
3
<div class="text-center">
  <CImage rounded src="/images/vue400.jpg" width="200" height="200"/>
</div>
1
2
3

API #

CImage #

import { CImage } from '@coreui/vue'
// or
import CImage from '@coreui/vue/src/components/image/CImage'
1
2
3

Props #

Prop nameDescriptionTypeValuesDefault
alignSet the horizontal aligment.string'start', 'center', 'end'-
fluidMake image responsive.boolean-
roundedMake image rounded.boolean-
thumbnailGive an image a rounded 1px border appearance.boolean-
On this page
  • Responsive images
  • Image thumbnails
  • Aligning images
  • API
    • CImage
  • GitHub
  • Twitter
  • CoreUI (Vanilla)
  • CoreUI for Angular
  • CoreUI for React.js

CoreUI for Vue is Open Source UI Components Library for Vue.js.

CoreUI code licensed MIT, docs CC BY 3.0. CoreUI PRO requires a commercial license.