0.4.5 • Published 3 years ago

@bdt-component-library/card v0.4.5

Weekly downloads
62
License
MIT
Repository
github
Last release
3 years ago

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

proptyperequireddefaultexplanation
variantenum("horizontal", "vertical")no"vertical"Determines the card layout style
featuredImagestringnonoOptional src for a card image
featuredImageDescriptionstringno"Preview"alt text for optional image src
imageVariantenum("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)
titlestringnonoCard title text
textstringnonoCard main body text
buttonbooleannoundefinedDetermines if the card contains a button
buttonTextstringnonoText 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