image

v1.0.2arrow_drop_down
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
4,602
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
2 years ago
SIZE
3 KB
Template component for images.
1 contributor
Install image as a package?
Copied
npm i @bit/bit.base-ui.elements.image
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
BaseImage ()

Template component for images. Accepts all the arguments of native html image.

Example
<BaseImage alt="avatar" src="https://storage.com/asdlkfjsdf.png">
Properties
NameTypeDescription
alt
(required)
string

alt text (to comply a11y standards)

fullWidth
boolean

Makes image fill the whole width of container. same as width: 100%

Test Summary

should render

Pass

should pass classname

Pass
Help and resources