![]() ![]() Can also be used to disable rounded corners or make the image a circle/oval. When set to 'true', makes the image corners slightly rounded. The value to set on the image's 'height' attribute Similar to the 'fluid' prop, but allows the image to scale up past its native width The image will shrink as needed or grow up the the image's native width Sets the color of the blank image to the CSS color value specifiedįorces the image to display as a block element rather than the browser default of inline-block element Component referenceĬreates a blank/transparent image via an SVG data URI Support for srcset and sizes was added in release 2.1.0. See srcset support above for prop usage details and limitations. These props will only be applied to the image once it has come into view. supports setting the srcset and sizes attributes on the rendered element. sync modifier, and will be updated to true when the final image is shown. To force the final image to be shown, set the show prop to true. Images in BootstrapVue can be made responsive with the fluid prop (which sets max-width: 100% height: auto via CSS classes) so that it scales with the parent element - up to the maximum native width of the image. The following sub-sections cover the various options. Several props are available for styling the rendered image element. If you are using project assets as image sources, please refer to Component img src resolving for configuring vue-loader to understand custom component props that specify image sources. The src prop (and blank-src prop of ), out of the box, works only with absolute or fully-qualified-domain-name URLs. Support for lazy loaded images is available via the complimentary component. ![]() Documentation and examples for opting images (via component) into responsive behavior (so they never become larger than their parent elements), optionally adding lightweight styles to them - all via props.īootstrapVue's image components support rounded images, thumbnail styling, alignment, and even the ability to create blank images with an optional solid background color. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |