@vaadin/card
v24.7.2
Published
vaadin-card
Downloads
65,722
Readme
@vaadin/card
A visual content container.
⚠️ This component is experimental and the API may change. In order to use it, enable the feature flag by setting
window.Vaadin.featureFlags.cardComponent = true
.
<vaadin-card class="flex flex-col overflow-hidden">
<img
src="https://images.unsplash.com/photo-1519681393784-d120267933ba?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80"
alt="">
<div class="flex flex-col items-start p-m">
<h3>Card Title</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.</p>
<span theme="badge">Label</span>
</div>
</vaadin-card>
Installation
Install the component:
npm i @vaadin/card
Once installed, import the component in your application:
import '@vaadin/card';
Contributing
Read the contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
License
Apache License 2.0
Vaadin collects usage statistics at development time to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.