0.0.13 • Published 4 years ago

vue-tailwind-accordion v0.0.13

Weekly downloads
37
License
MIT
Repository
github
Last release
4 years ago

Vue Tailwind Accordion

npm.io npm.io

node.js vue.js tailwindcss

Tailwind Accordion for Vue.js, based on Vue.js Accordion Component by Anzhelika Kovalchuk

example

Documentation

Install it with Yarn or NPM

yarn add -D vue-tailwind-accordion

OR

npm i vue-tailwind-accordion --save-dev

Import it, ES6 way, in main.js / app.js file

import VueTailwindAccordion from 'vue-tailwind-accordion'

Vue.use(VueTailwindAccordion)

Use it in a .vue file

<template>
  <div class="container w-1/2 mx-auto my-5">
    <vue-tailwind-accordion :content="data"></vue-tailwind-accordion>
  </div>
</template>

<script>
export default {
  data() {
    return {
      data: [
        {
          title: 'Tailwind CSS is awesome!',
          content:
            'Tailwind CSS is a highly customizable, low-level CSS framework that gives you all of the building blocks you need to build bespoke designs without any annoying opinionated styles you have to fight to override.',
        },
        {
          title:
            'Vue.js too!',
          content:
            'Vue is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable. The core library is focused on the view layer only, and is easy to pick up and integrate with other libraries or existing projects. On the other hand, Vue is also perfectly capable of powering sophisticated Single-Page Applications when used in combination with modern tooling and supporting libraries.',
        },
        {
          title: 'Download VueTailwindAccordion on NPM now!',
          content:
            'Relied upon by more than 11 million developers worldwide, npm is committed to making JavaScript development elegant, productive, and safe. The free npm Registry has become the center of JavaScript code sharing, and with more than one million packages, the largest software registry in the world. Our other tools and services take the Registry, and the work you do around it, to the next level. ',
        },
      ],
    }
  },
}
</script>

License

MIT

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.1

4 years ago