Giter VIP home page Giter VIP logo

vuedetails's Introduction

<details> HTML5 Element Vue 3 Package

This is an npm package that provides a custom implementation of the <details> HTML5 element using Vue 3, TypeScript, Vite, and Vue Test Utils. This package is intended to be used in Vue 3 projects where a custom implementation of the <details> element is needed.

Installation

To install this package, you can use npm or yarn:

npm install vue3details

Usage

To use the <vue3details> element provided by this package, you can import it in your Vue 3 component and use it as follows:

Import into your main file:

import Vue3Details from 'vue3details';

...
app.use(Vue3Details);  
...

and use as:

   <Vue3Details open="isOpen" @open="(e)=> isOpen = e">
    <summary>Title</summary>
    <p>Details content goes here.</p>
   </Vue3Details>

Testing

This package comes with unit tests implemented using Vue Test Utils. To run the tests, you can use the following command:

npm run test

Contributing

If you find a bug or have a feature request, please open an issue on the GitHub repository for this package. Pull requests are also welcome!

License

This package is licensed under the MIT License. See the LICENSE file for details.

vuedetails's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.