1.1.1 • Published 4 months ago

expand-card-flavored v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Expandable Card

Simple Expandable Card

Alt text

Installation

  • npm i expand-card-flavored

Global Registration

import { createApp } from "vue";
import App from "./App.vue";
import ExpandCard from "expand-card-flavored";
import "expand-card-flavored/dist/style.css";

const app = createApp(App);

app.use(ExpandCard);

app.mount("#app");

Local Registration

import ExpandCard from "expand-card-flavored";
import "expand-card-flavored/dist/style.css";

export default {
  name: "App",
  components: { ExpandCard },
};

Props

Demo

<template>
  <ExpandCard 
    :cardHeight=300 
    :cards="
      [ 
        { 
          imagePath: 'https:.....', 
          icon: null,
          label: 'Test', 
          link: '#', 
        }, 
        { 
          imagePath: Img1,
          icon: 'A',
          label: 'Test' 
        }, 
      ]"
  />
</template>

<script>
  import Img1 from "./assets/images/1.jpg";
  import Img2 from "./assets/images/2.jpg";
</script>

OR

<template>
  <ExpandCard 
    iconBGColor="#bae1ff" 
    iconFontColor="yellow" 
    :cards="data" 
  />
</template>

<script>
  import Img1 from "./assets/images/1.jpg";
  import Img2 from "./assets/images/2.jpg";

  var data = [
    {
      imagePath: "https:.....",
      icon: null,
      label: "Test",
      link: "#",
    },
    {
      imagePath: Img1,
      icon: "A",
      label: "Test",
    },
  ];
</script>

code for fun

1.1.1

4 months ago

1.1.0

4 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago