Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bdt-component-library/card

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bdt-component-library/card

Card component

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

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
buttonClassstringnon/aAdds an optional classname to the button component
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

FAQs

Package last updated on 02 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc