# @dile/dile-action-card

> Webcomponent dile-action-card to create a card element with buttons

Latest version **0.0.2** (published 2024-03-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dile/dile-action-card
pnpm add @dile/dile-action-card
yarn add @dile/dile-action-card
bun add @dile/dile-action-card
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2024-03-26 |
| First published | 2024-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 106 |
| Author | Joselon |
| Maintainers | midesweb |
| Keywords | Lit, Web Component, card, buttons |

## Links

- npm: https://www.npmjs.com/package/@dile/dile-action-card
- Repository: https://github.com/Polydile/dile-components
- Issues: https://github.com/Polydile/dile-components/issues
- npm.io page: https://npm.io/package/@dile/dile-action-card

## Dependencies (2)

- [lit](https://npm.io/package/lit.md) ^3.1.1
- [@dile/dile-button-icon](https://npm.io/package/@dile/dile-button-icon.md) ^1.1.5

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2024-03-26
- 0.0.1 — 2024-03-03

## README

# @dile/dile-action-card

Web Component to create a customized Action Card with Buttons.

## Docs and demos

- [Docs and demos on the dile-components site](https://dile-components.polydile.com/components/dile-action-card/)

# dile-action-card

Web Component to create a customized Action Card with Buttons.

## Installation

```bash
npm i @dile/dile-action-card
```

## Usage

Import the component

```javascript
import '@dile/dile-action-card/dile-action-card.js';
```

Use the component

```html
<dile-action-card title="Title" options='["Action1","Action2"]'>
      <span slot="subtitle">Info subtitles</span>

</dile-action-card>
```

## Slots

This component has three slots.

- **subtitle slot**: for the card info content.
- **subCardsButton slot**: for buttons to view subelements
- **subCards slot**: for subelements cards.

## Properties

- **title**: Card title, string (optional).
- **options**: Array with Actions titles
- **icons**: Array with Icons for dile-button-icon

## Custom Events

- **dile-action-card-option-selected**: Dispatched when an action button is clicked. In the event detail will emmit the selected action title.

### CSS Custom Properties

You can customize it using CSS Custom Properties.

Custom property | Description | Default
----------------|-------------|---------
--dile-action-card-border | Card Border | 2px solid #ccc
--dile-action-card-border-radius | Card Border Radius | 0
--dile-action-card-background-color | Background color | #f5f5f573
--dile-action-card-header-justify-content | Header's Horizontal Align | flex-start
--dile-action-card-header-align-content | Header's Horizontal Align | flex-start
--dile-action-card-header-flex-direction | Header's Flex Direction | column-reverse
--dile-action-card-buttons-justify-content | Action buttons horizontal align | flex-start

---
_Source: https://npm.io/package/@dile/dile-action-card · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
