# dynamic_cards_componenets

Latest version **1.2.2** (published 2023-10-29) · 0 weekly downloads

## Install

```sh
npm install dynamic_cards_componenets
pnpm add dynamic_cards_componenets
yarn add dynamic_cards_componenets
bun add dynamic_cards_componenets
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2023-10-29 |
| First published | 2023-10-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 88.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | abderrahmaneamerrhi |

## Links

- npm: https://www.npmjs.com/package/dynamic_cards_componenets
- npm.io page: https://npm.io/package/dynamic_cards_componenets

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [dynamic_cards_componenets](https://npm.io/package/dynamic_cards_componenets.md) ^1.1.1

## Recent versions

- 1.2.2 (latest) — 2023-10-29
- 1.1.2 — 2023-10-29
- 1.1.1 — 2023-10-29
- 0.1.1 — 2023-10-29
- 0.0.1 — 2023-10-29
- 0.1.0 — 2023-10-29

## README

## Dynamic Vuejs2 Card Component

<!-- ![card image](src/assets/cardsimage.png) -->

📃 This template should help you get started with Vue js development as a ready-made components for displaying your stats in a form card ,
You only give it the data necessary to display it, such as the number, title, and icon, and it completes the task successfully. You can also add your own touch to it.

🛑 This component was created using vuejs2 technology and only works on projects of the same Version vuejs 2. It will be updated later to the next version and other components will be created that will help you and facilitate the process of building your web applications.

## Demo

Discover [Demo](https://amtabledemo.netlify.app/CadrView).

## Features

- Dynamic
- This component enables you to control and dynamically change your digital data and statistics

- Responsive Design

  - Its design is compatible with all phone screens, tablets and computers

- The icon can be changed according to your need

- You can add your own touch to the card style by adding a CSS class

## Installation

Install amtablevuecomponenet with npm

```bash or terminal
  npm install dynamic_cards_componenets
  npm i dynamic_cards_componenets
```

## Available props

| Attribute |       Type       |   Default | required |                                                            description                                                             |
| :-------- | :--------------: | --------: | :------- | :--------------------------------------------------------------------------------------------------------------------------------: |
| data      | Array of objects | null , [] | true     | This attribute specifies the data that will be displayed in the card and contains all the information that the component will need |

## Explanation of using data props

Here we define the compoenent data

        cardsdata:
        [
        {
        // The first card
        title: "card1" // Card Title,
        number: 290, // The number that is displayed on the card,
        icon: "bx bxs-playlist" // Icon class : You can use any class icon from icons that you use in your project example fontawesome etc,
        },
        {
         // The second card

            title: "card2",
            number: 2600,
            icon: "bx bxs-ev-station",
          },
          {
             // The third card
            title: "d3",
            number: 3500,
            icon: "fa fa-edit",
            iconId: "cube",
          },
          {
             // The fourth  card
            title: "d4",
            number: 2000,
            icon: "fa-solid fa-trash",
            iconId: "cube" // icon id if you want to change the icon style like background color and other things,
            cardclass: "FrCardclass" // card css class if you want to change card style  and other things,
          },
        ],

## Usage/Examples

```html
<template>
  <div id="app">
    <card :data="cardsdata" />
  </div>
</template>

<script>
  // import cardcomponenet
  import card from "dynamic_cards_componenets";
  // import card css style
  import "dynamic_cards_componenets/dist/card-component.css";

  export default {
    name: "App",
    data() {
      // declare card data
      return {
        cardsdata: [
          {
            title: "card1",
            number: 290,
            icon: "bx bxs-playlist",
          },
          {
            title: "card2",
            number: 2600,
            icon: "bx bxs-ev-station",
          },
          {
            title: "d3",
            number: 3500,
            icon: "fa fa-edit",
            iconId: "cube",
          },
          {
            title: "d4", // Card Title,
            number: 2000, // The number that is displayed on the card,
            icon: "fa-solid fa-trash", // Icon class : You can use any class icon from icons that you use in your project example fontawesome etc,
            iconId: "cube", // icon id if you want to change the icon style like background color and other things
            cardclass: "FrCardclass", // card css class if you want to change card style  and other things,
          },
        ],
      };
    },
    components: {
      card,
    },
  };
</script>

<style>
  /* ============ Use iconId and cardclass to make some style changes ========== */

  #cube {
    background-color: #ffd4d4;
    color: #ff7979;
  }
  #cube:hover {
    background-color: #de6b6b;
  }

  .FrCardclass {
    background: yellow;
  }
</style>
```

## Final result

![card image](https://github.com/AbderrahmaneAmerhhi/Dynamic-Responsive-Statistics-Cards/blob/main/src/assets/cardsimage.png)

## 🔗 Links

[![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge&logo=ko-fi&logoColor=white)](https://main--abderrahmaneamerrhiportfoliov2.netlify.app/)
[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/abderrahmane-amerrhi-807b40201/)

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