vue-details

Proper support for `<details>` tag in Vue.js including `v-model` attribute
5,124 5
Install
npm install vue-details
Latest Version:1.1.0
License:MIT
Last Updated:Jan 14, 2023
Links: GitHub  ·  npm
Maintainer: mad-liberation

npm version

Vue Details for Vue 2

Proper support for <details> tag in Vue.js including v-model attribute.

Get Started

Using Node.js

Install package

npm install vue-details

Initialize globally

import Vue from 'vue';
import VueDetails from 'vue-details';

Vue.component('v-details', VueDetails);

or locally as shown in the example below.

Using CDN

Load script

<script src="https://cdn.jsdelivr.net/npm/vue-details"></script>

or

<script src="https://unpkg.com/vue-details/dist/vue-details.min.js"></script>

Register component

Vue.component('v-details', VueDetails);

An Example

Try it Online

Code in a .vue File

<template>
  <v-details v-model="open">
    <summary>
      Content is {{ open ? 'shown' : 'hidden' }}
    </summary>
    <p>
      Expandable content
    </p>
  </v-details>
</template>

<script>
import VueDetails from 'vue-details';

export default {
  data() {
    return {
      open: true
    }
  },
  components: { 'v-details': VueDetails }
}
</script>

Related Packages

the-themex-project

Themex aims to prevent a blank screen in your IDE and serves as a solid foundati...

7,230 18
@mozaic-ds/vue-3

Vue.js implementation of Mozaic Design System

46,594
@dongido/vue-viaudio

A package that helps you dynamically/reactively render video and audio elements...

14,976 27
@nasc/furtherjs

A small, simple and future friendly WebComponent driven JavaScript library

1,178
vueform

Form validation for Vue.js powered by HTML5

6,608

Version History

Version Released License
1.1.0 MIT
1.0.9 MIT
1.0.7 MIT
1.0.5 MIT
1.0.4 MIT