0.1.1 • Published 3 years ago

@simplr-wc/card v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Simplr Card

Usage

Import
import '@simplr-wc/card';
Use
<simplr-card
  title="Card title"
  subtitle="Card subtitle"
  content="Card content, which should be descriptive. The content might span to multiple lines"
  image="https://i.picsum.photos/id/217/300/200.jpg"
></simplr-card>
PropertyAttributeTypeDefaultDescription
contentcontentstring""Content of the card element
dimOnHoverdimOnHoverbooleanfalseShould the card dim on hover.This should be turned on if the card is clickable
elevatedelevatedbooleanfalseShould the card be elevated
fontSizefontSizestring"1rem"Font size to scale the card contents by
imageimagestring""Image url of the card element
imagePaddingimagePaddingstring""Padding of the image on the card element
imageWidthimageWidthstringWidth of the image on card. 100% if not set.
subtitlesubtitlestring""Subtitle of the card element
titletitlestring""Title of the card element
widthwidthstringWidth of the card element. Automatically sized to referencesize between 250px and 350px if left unset
0.1.1

3 years ago

0.1.0

3 years ago

0.3.0

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago