0.4.5 • Published 3 years ago
@bdt-component-library/card v0.4.5
Card Component
About
This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.
Description
Handles display of cards.
API
prop | type | required | default | explanation |
---|---|---|---|---|
variant | enum("horizontal", "vertical") | no | "vertical" | Determines the card layout style |
featuredImage | string | no | no | Optional src for a card image |
featuredImageDescription | string | no | "Preview" | alt text for optional image src |
imageVariant | enum("cover", "contain") | no | "contain" | Determines the shape property for the image with respect to its container ("cover" and "contain" act as the css object-fill properties of the same name) |
title | string | no | no | Card title text |
text | string | no | no | Card main body text |
button | boolean | no | undefined | Determines if the card contains a button |
buttonText | string | no | no | Text for the optional card button |
0.4.5
3 years ago
0.4.4
4 years ago
0.4.3
4 years ago
0.4.2
4 years ago
0.4.1
4 years ago
0.3.6
4 years ago
0.3.5
4 years ago
0.4.0
4 years ago
0.3.4
4 years ago
0.3.3
4 years ago
0.3.2
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.5
4 years ago
0.2.4
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.10
4 years ago
0.1.11
4 years ago
0.1.12
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago