teaser-image
v0.0.2arrow_drop_downv0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
0
VISIBILITY
Public
PUBLISHED
6 years ago
SIZE
17 KB
Linked teaser image using the <picture> tag
1 contributor
Like
Install teaser-image as a package?
Copied
npm i @bit/chriskinch.app.components.teaser-image
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
TeaserImage ()
Linked teaser image using the
Example
Properties
Name | Type | Description |
---|---|---|
path | string | URL for the image to be linked to |
alt | string | Text for the image alt tag |
defaultCrop | object | Crop information |
defaultCrop.url | string | URL for the image src |
defaultCrop.height | number | Image height |
defaultCrop.width | number | Image width |
title | string | Text content of the image title |
Test Summary
Snapshot renders correctly | Pass |