simple-dropdown-arrow

1.1.1 • Public • Published

simple dropdown arrow

this package is my simple implementation of an arrow, which hides/shows content when clicked. To use this package first install it

npm i simple-dropdown-arrow

install webpack

npm i --save-dev webpack-cli

require this package in your project

const { arrow } = require('simple-dropdown-arrow');

create the arrow, as an argument for the function pass the HTML element you want to be shown/hidden

const myArrow = arrow.createArrow(myHTMLElement)

the function returns the arrow as an HTML element. serve your project with webpack

npx webpack --serve open

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i simple-dropdown-arrow

    Weekly Downloads

    0

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    2.54 kB

    Total Files

    3

    Last publish

    Collaborators

    • bobmc