@nlt-design-system/card
v0.0.1
Published
A Material Design inspired card web component that can be used in any web application, regardless of the framework.
Readme
@nlt-design-system/card
A Material Design inspired card web component that can be used in any web application, regardless of the framework.
Installation
npm install @nlt-design-system/cardUsage
<nlt-card title="Card Title" elevation="1">
<div>Card content goes here</div>
</nlt-card>Attributes
| Attribute | Description | Default | |------------|------------------------------------------------------------|---------| | title | The title to display in the card header | "" | | elevation | The shadow elevation level (0-5) | "1" |
Methods
| Method | Description | |---------------------|-------------------------------------------| | attributeChangedCallback | Handles attribute changes | | connectedCallback | Called when element is added to the DOM | | disconnectedCallback| Called when element is removed from the DOM |
Building
Run nx build card to build the library.
Running unit tests
Run nx test card to execute the unit tests.
