0.0.15 • Published 2 years ago

@palazzinacreativa/vue-accordion v0.0.15

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

vue-accordion

Vue accordion transition.

Installation

npm i @palazzinacreativa/vue-accordion

or

yarn add npm i @palazzinacreativa/vue-accordion

Then you can install your plugin globally with

...
import Accordion from '@palazzinacreativa/vue-accordion'

Vue.use(Accordion)
...

or locally

...
import Accordion from '@palazzinacreativa/vue-accordion'

export default {
  ...
  components: {
    Accordion
  },
  ...
}
...

Usage

Use Accordion as a component. Pass head and body by slots.

<Accordion :icon-color="#000000">
  <template v-slot:head>
    Accordion Head
  </template>
  <template v-slot:icon>
    <img src="/icon.png" />
  </template>
  <template v-slot:body>
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Incidunt, quod aliquid. Eveniet nulla necessitatibus, beatae voluptatibus recusandae placeat. Enim autem nemo provident harum. Ea, maiores nobis nesciunt at qui et!
  </template>
</Accordion>

Options

ParameterRequiredTypeDefaultDescription
icon-colorString#fffHex color for default icon
disableBooleanfalseDisable accordion. Body is always shown.

To do

Accordion group (close all accordions simultaneously)

0.0.13

2 years ago

0.0.15

2 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago