{"_id":"@agence-webup/tiroir","_rev":"6-df1dc255cebe4284896dc0882cd136bb","name":"@agence-webup/tiroir","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@agence-webup/tiroir","version":"0.1.0","keywords":["drawer","vanilla","menu","mobile"],"author":{"name":"Agence Webup"},"license":"MIT","_id":"@agence-webup/tiroir@0.1.0","maintainers":[{"name":"tixie","email":"admin@glitch.family"},{"name":"agencewebup","email":"tools@agence-webup.com"},{"name":"robinparisi","email":"parisi.robin@gmail.com"}],"homepage":"https://github.com/agence-webup/tiroir#readme","bugs":{"url":"https://github.com/agence-webup/tiroir/issues"},"dist":{"shasum":"93578a4821d30184131e45cbd5be6904d55d7f61","tarball":"https://registry.npmjs.org/@agence-webup/tiroir/-/tiroir-0.1.0.tgz","fileCount":26,"integrity":"sha512-kr8N/FS21FE+gaVBtDobnPTn0UTPrXGG8lBqPr1RotUefKBZm2P6qWOu2j0tHzTYJyuiVv3dLIgy/Yt6oivIYw==","signatures":[{"sig":"MEUCIQDsA9UKApigBHUuzqQHpmH/wc6DGkkOUsAvWvg22gPDjAIgFY9S28qPmeCNLTCo84Fv3iKUiLT+qotXPBT9bkOVW3Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":289784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeHgRCRA9TVsSAnZWagAAp18QAJ0cV8vu4vMbvhk8yIrl\n800flP6rrSxlRY7HTkaWmLoD/VxSJeKhoYrpT/JrfVA02oQW4RwxzahUnbTb\nqD7QyONI+tr1P3Ap74DgEuyskPRpX2ECuQtsdQ267gPHAVwGfvcEp/vCCEpg\naHPgO260/DnR6S/uBs+qYlRIju6i4iZLRlLvZtIoK8CMX8J3ebqQcfmsMzRA\ndCF16cQwLpKODZWsK0YKR0ESbFT2ShZAvFNPswq8ICIIjLfNp+krnHDBOf81\nQdftElpTFeLDrABHbA8rR3f/Z5KEDAlWN8CwXwkwfMR/ZF0kjMVnZkYmKTbf\nw5MJElUY7+9oW27C+bO316/HmFBm8gpcjUwqs1Q4skI1efQSjIVWeFF3l+at\nsf7Xp5KGE4SSRZXs6D9cU4gt2OLJCgMZsZlmH4b7f9L5LrdDwUvuqlSU4mHB\n2Kwk47mSBIeT284BFH90boNAGfK1k1l7aPY17yLG7xuMr1tMe188/eF6bgPR\nyj2aiWZEigYLRKVVs3/1p8psS+DXEyHtR0tF9RvNSfC05fbVS3g5UO08/GJm\nvxzoZTlT0G7mq4wmvZREwEQQlNLzZHd1lpUsGeWMSMB+q0jvYW3LDcbxo1Bw\nKlN9XzE5i8T9Cn18ve5WOGlSsznTE7exAeBlvGHU8Y2vo+2nvK15ToS6RAEH\nmht6\r\n=OzTq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/tiroir/tiroir.min.js","style":"dist/tiroir/tiroir.css","module":"dist/tiroir/tiroir.esm.min.js","gitHead":"28acd022d5185dd0c2e5a55f8abcccd5274d3d0b","scripts":{"dev":"rollup -c -w","build":"rollup -c","start":"sirv dist"},"_npmUser":{"name":"tixie","email":"admin@glitch.family"},"repository":{"url":"git+https://github.com/agence-webup/tiroir.git","type":"git"},"_npmVersion":"7.6.3","description":"A simple drawer menu vanilla plugin","directories":{},"_nodeVersion":"15.12.0","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.32.5","eslint":"^7.18.0","rollup":"^2.36.1","svelte":"^3.31.2","postcss":"^8.2.4","sirv-cli":"^1.0.10","stylelint":"^13.9.0","@babel/core":"^7.12.10","autoprefixer":"^10.2.3","stylelint-order":"^4.1.0","@babel/preset-env":"^7.12.11","eslint-plugin-node":"^11.1.0","rollup-plugin-scss":"^2.6.1","@babel/eslint-parser":"^7.12.1","@rollup/plugin-babel":"^5.2.2","eslint-plugin-import":"^2.22.1","rollup-plugin-svelte":"^7.0.0","rollup-plugin-terser":"^7.0.2","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^16.0.2","rollup-plugin-livereload":"^2.0.0","@rollup/plugin-node-resolve":"^11.0.1","stylelint-config-rational-order":"^0.1.2","@babel/plugin-proposal-class-properties":"^7.12.1"},"_npmOperationalInternal":{"tmp":"tmp/tiroir_0.1.0_1618507792761_0.638173341974066","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@agence-webup/tiroir","version":"0.1.1","keywords":["drawer","vanilla","menu","mobile"],"author":{"name":"Agence Webup"},"license":"MIT","_id":"@agence-webup/tiroir@0.1.1","maintainers":[{"name":"tixie","email":"admin@glitch.family"},{"name":"agencewebup","email":"tools@agence-webup.com"},{"name":"robinparisi","email":"parisi.robin@gmail.com"}],"homepage":"https://github.com/agence-webup/tiroir#readme","bugs":{"url":"https://github.com/agence-webup/tiroir/issues"},"dist":{"shasum":"6f9a2a1e0741ba976ef564b79fc423b0df92beb2","tarball":"https://registry.npmjs.org/@agence-webup/tiroir/-/tiroir-0.1.1.tgz","fileCount":26,"integrity":"sha512-3RAMXpX5QHUBom3JYvY+Lax3lp7Rx7Fav8qv8GUOlEMHh6kYq7L6BNygbcGVLKem1s0yIGNhh84HXIzO1KugYA==","signatures":[{"sig":"MEUCIQD3ALP3Y5dqiizIyujfrGkXAiUQwcZOCjpEMKNx9YoNwAIgC2mDWlApoDo+PpXM/oLSv/G14x2Be34XPfcDOSTQudM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":290262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgewd6CRA9TVsSAnZWagAA3M8P/1bKizSkagOmg4/14KPB\n9/ZD/rTtSKRnARL3xf+B+pSxD88cdrD6CrDwA0/KMse2LDclHVQIitmWyMaz\nH2T4T4x6FdAKpHdSg5hFJIBFpJqokna12vhE2B7lz1wiYFoIaZbWTv/qpmQ+\nB3yDmhbqD1OGiVpsvrqCSftffpuiKkCa+6WiW0mz1UjYbZerTt4zxYyJrNl6\nUibpgUPfkbrFy/iQVdoAfUO52mzFonKcEf41Mn1IsIN10BTVLA9Fxbhgym5p\nzRE5pGWgdbeGeSAZH5QDbMH9M0o5G3nkODLZX72+iXZlwy19oRSEajwBiBlz\nSACREJ0CIeNWZB7/inR5c2Ts4lhVzLoFx6/WfRn3HPkvZZWrwAzUs409mX+y\nLQLElM9A1Hb+MY5KZaqt332gPFkoM+xLJttdMhXhj4E4doDieBNg5R926v3M\n9ewee3B9BiH1bJcUluoc43bAkuCZts/mDLNPN+APf1T0FGEAU50XliXKPt7+\nY2xQFD9SvvGN7Q36uVJfvLMIN8rAcotCD2qMJ8eAgPRMyBYfXFiRbrkR6/z2\nqd0UAckJjfA6gyJ1urEbFqzIIb0PJwmyy/QgVp99rbsNrwrPgGAR1PqhuZW5\niwlFP/Rr0JDbj1BFCk+FpYYJ6M+w6FlrRE9QrqAZADAZJmk4ua4ElNkcRu5R\nacD/\r\n=ISJo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/tiroir/tiroir.min.js","style":"dist/tiroir/tiroir.css","module":"dist/tiroir/tiroir.esm.min.js","gitHead":"bf40366ffc9f49318e6246ad4f2be4912b695477","scripts":{"dev":"rollup -c -w","build":"rollup -c","start":"sirv dist"},"_npmUser":{"name":"tixie","email":"admin@glitch.family"},"repository":{"url":"git+https://github.com/agence-webup/tiroir.git","type":"git"},"_npmVersion":"7.6.3","description":"A simple drawer menu vanilla plugin","directories":{},"_nodeVersion":"15.12.0","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.32.5","eslint":"^7.18.0","rollup":"^2.36.1","svelte":"^3.31.2","postcss":"^8.2.4","sirv-cli":"^1.0.10","stylelint":"^13.9.0","@babel/core":"^7.12.10","autoprefixer":"^10.2.3","stylelint-order":"^4.1.0","@babel/preset-env":"^7.12.11","eslint-plugin-node":"^11.1.0","rollup-plugin-scss":"^2.6.1","@babel/eslint-parser":"^7.12.1","@rollup/plugin-babel":"^5.2.2","eslint-plugin-import":"^2.22.1","rollup-plugin-svelte":"^7.0.0","rollup-plugin-terser":"^7.0.2","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^16.0.2","rollup-plugin-livereload":"^2.0.0","@rollup/plugin-node-resolve":"^11.0.1","stylelint-config-rational-order":"^0.1.2","@babel/plugin-proposal-class-properties":"^7.12.1"},"_npmOperationalInternal":{"tmp":"tmp/tiroir_0.1.1_1618675578042_0.6745590389497103","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@agence-webup/tiroir","version":"0.1.2","keywords":["drawer","vanilla","menu","mobile"],"author":{"name":"Agence Webup"},"license":"MIT","_id":"@agence-webup/tiroir@0.1.2","maintainers":[{"name":"tixie","email":"admin@glitch.family"},{"name":"agencewebup","email":"tools@agence-webup.com"},{"name":"robinparisi","email":"parisi.robin@gmail.com"}],"homepage":"https://github.com/agence-webup/tiroir#readme","bugs":{"url":"https://github.com/agence-webup/tiroir/issues"},"dist":{"shasum":"35219c138cf11313aaa8274e97f490ec9ffcac3e","tarball":"https://registry.npmjs.org/@agence-webup/tiroir/-/tiroir-0.1.2.tgz","fileCount":26,"integrity":"sha512-2F3rq6fL/iR9L342UZU120ZoBjtMSw5oWykAxQiVQ/7XaIoE5RQ70w3tlwxS+RnBCr8U7LBWeIiUhA/CoQhlFg==","signatures":[{"sig":"MEQCIGyg1wWzvAmOejlT31q4DNwit66+hBw90msZpdkY1rlCAiBb/Osg96LE1BemPz0SCfJXpl1PpFRQPu6wjh1jWgrk2Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":292776,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgexuPCRA9TVsSAnZWagAAXu8P/ip/qBIMk0TlC3IZXd5q\nVo6frN7tFo2HFlqeLlT2+QkKDbBLmCKEHCbd0G3ezBLPh9qjvCULi7LNwfwd\nYqvv40lspYQQffNyFRwe5W2uajrVCpmsNA0ajyP3tdgmgUQ5j8pAcyx6hPPR\nu8YGxeUUZXVeF4Z5CTPxCvB0CsCg/J5CW5XyxtnzDBt7AZaQliDGr+9ArWCK\n/OVsKNjrfEpWI+D8qFv1lvHaW/uibw26Dn55xfNFTKOcar3w4aF2COBzT9RK\n1kLo87Pw66n0Og4Ixxrwee8FrdYEWxGHqkTLq/wyETsFHFA28Gozr/4OMhV1\nc/4H5CF1Qscfi8DLoKuA5oiSklkRK3sU0LoygrisJr09A0KQqDzD5YQ0JIsO\nLBwai2VAubsbP89RRI8fS5XdXIwF+57EIp6vcJPZ0iZMdxRiwMR8r4ta3I7h\n0AAq+qD1wRQTSSVldq6HK16yWxnmHJRi8phMcUBGD6pZf/zFNMOFb6eIv2uL\n33VKcstRYudW44XAFXfKCkDbx05gim1YQ1p6NiPkIdbvwxnqSCTmoYglxJ8N\n3p10ehyYsNIIzc41Ux61drmERNQy0guWFvR/zXth1pCTMFxB2x9BhNJRkJcx\n97bGcQDcF+/v/YQ4B7/T8IskvOJBlea9UiphthoZ9cNDpq+jV0iec8iSAVCS\nKaWc\r\n=xshS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/tiroir/tiroir.min.js","style":"dist/tiroir/tiroir.css","module":"dist/tiroir/tiroir.esm.min.js","gitHead":"b78524e8de89fb67f012355be6a7db65dffc46ea","scripts":{"dev":"rollup -c -w","build":"rollup -c","start":"sirv dist"},"_npmUser":{"name":"tixie","email":"admin@glitch.family"},"repository":{"url":"git+https://github.com/agence-webup/tiroir.git","type":"git"},"_npmVersion":"7.6.3","description":"A simple drawer menu vanilla plugin","directories":{},"_nodeVersion":"15.12.0","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.32.5","eslint":"^7.18.0","rollup":"^2.36.1","svelte":"^3.31.2","postcss":"^8.2.4","sirv-cli":"^1.0.10","stylelint":"^13.9.0","@babel/core":"^7.12.10","autoprefixer":"^10.2.3","stylelint-order":"^4.1.0","@babel/preset-env":"^7.12.11","eslint-plugin-node":"^11.1.0","rollup-plugin-scss":"^2.6.1","@babel/eslint-parser":"^7.12.1","@rollup/plugin-babel":"^5.2.2","eslint-plugin-import":"^2.22.1","rollup-plugin-svelte":"^7.0.0","rollup-plugin-terser":"^7.0.2","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^16.0.2","rollup-plugin-livereload":"^2.0.0","@rollup/plugin-node-resolve":"^11.0.1","stylelint-config-rational-order":"^0.1.2","@babel/plugin-proposal-class-properties":"^7.12.1"},"_npmOperationalInternal":{"tmp":"tmp/tiroir_0.1.2_1618680718914_0.949793940463306","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@agence-webup/tiroir","version":"0.2.0","keywords":["drawer","vanilla","menu","mobile"],"author":{"name":"Agence Webup"},"license":"MIT","_id":"@agence-webup/tiroir@0.2.0","maintainers":[{"name":"agencewebup","email":"tools@agence-webup.com"},{"name":"robinparisi","email":"parisi.robin@gmail.com"},{"name":"tixie","email":"admin@glitch.family"}],"homepage":"https://github.com/agence-webup/tiroir#readme","bugs":{"url":"https://github.com/agence-webup/tiroir/issues"},"dist":{"shasum":"78fa3b9d901522a1ccc8924051bbd32aef8bbe7f","tarball":"https://registry.npmjs.org/@agence-webup/tiroir/-/tiroir-0.2.0.tgz","fileCount":29,"integrity":"sha512-sd6/TjohUEJptwXXsz4rIGEjp0fqTL4o2AoZWHNnTvsYjOkGGS4/bxTnTv31GvMXP+tmq8EM0OdzVeDjWjjOVg==","signatures":[{"sig":"MEUCIQCvTNm/lpoC++PdTTayEw6OnLq0JQdjX2o+2R/LLV183AIgDhmVQTZXc5r+f39lK3EidSFmpdhFy+Q6S5Flyb4nELE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":886222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMJrdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFfBAAg+U9qZ/bSNQ+HNhSI7rbN9g839KtI8pX5zbGymqR3MFn0uo8\r\nopsRL/SNpLxm3CnxoaAvWe/AfxUWTdxO5oW1/NR9SdnhoOH3UI9n7WWvWdoD\r\nyRNz2Pqa/vs/s84VImbMVCvk7cEfhpGjqGxSVoVELyEBhWYVgDl4zck8PAXe\r\n9psnlnRHtorqcibCb+6e45FanuHSNtzK9lIvB8sQ7AAD9PynTmc7SL5+rtq8\r\n+wRwN210zeOLk0xhsC+H/i0RJcW0AndoHKd0/sWx7MMYn9obJUHB3h2PPoZ4\r\naMMyIyn5iizO1UhrcZKMtbVp5SvB3sMkYfoZa0+xQbkvT4wtVSa54jVwuVsl\r\nv5AxkWTblD66NmCCBh39n8X6XPkQ4A8JDa5OJtEb7KZC9YDC0DiyizOPF6fS\r\njRaUs8XtaUlNGf+VLoNawyaSoJ9YAl9Nwadmnf9BeeyEP9IfItCWYXfCIfOY\r\nEEJ7Ua4NFZGBpp9NDEjZkGdcwJaY7Ii3YMk6Lxr7skLkBAkSrf1OCeKBwelt\r\n6ymwAm5oQFn4P6caJRzmiCJiZmXq0zrq+ECru3cIkSVWylFPcC6NdFjPX01M\r\nzxnjIU7CqRTxxrnbxr7J68XqquFBFlv6snXggwJy5m4x8c7793I+/LL9Ue+l\r\nHh1AoiNDte9R5hLOmu8GUCS7TEqyxi8Wq4g=\r\n=+mgs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/tiroir/tiroir.min.js","style":"dist/tiroir/tiroir.css","module":"dist/tiroir/tiroir.esm.min.js","gitHead":"06165c273fc7d6c364bc981eba00ad18f479668f","scripts":{"dev":"rollup -c -w","build":"rollup -c","start":"sirv dist"},"_npmUser":{"name":"tixie","email":"admin@glitch.family"},"repository":{"url":"git+https://github.com/agence-webup/tiroir.git","type":"git"},"_npmVersion":"8.5.1","description":"A simple drawer menu vanilla plugin","directories":{},"_nodeVersion":"17.6.0","_hasShrinkwrap":false,"devDependencies":{"sass":"^1.49.8","eslint":"^7.12.1","rollup":"^2.68.0","svelte":"^3.46.4","postcss":"^8.4.6","sirv-cli":"^2.0.2","stylelint":"^14.5.3","@babel/core":"^7.17.5","autoprefixer":"^10.4.2","focus-svelte":"^0.3.4","stylelint-order":"^5.0.0","@babel/preset-env":"^7.16.11","eslint-plugin-node":"^11.1.0","rollup-plugin-scss":"^3.0.0","@babel/eslint-parser":"^7.17.0","@rollup/plugin-babel":"^5.3.1","eslint-plugin-import":"^2.25.4","rollup-plugin-svelte":"^7.1.0","rollup-plugin-terser":"^7.0.2","eslint-plugin-promise":"^5.0.0","eslint-config-standard":"^16.0.3","rollup-plugin-livereload":"^2.0.5","@rollup/plugin-node-resolve":"^13.1.3","stylelint-config-rational-order":"^0.1.2","@babel/plugin-proposal-class-properties":"^7.16.7"},"_npmOperationalInternal":{"tmp":"tmp/tiroir_0.2.0_1647352540863_0.9633768098315427","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-04-15T17:29:52.497Z","modified":"2025-08-20T15:03:18.383Z","0.1.0":"2021-04-15T17:29:52.950Z","0.1.1":"2021-04-17T16:06:18.261Z","0.1.2":"2021-04-17T17:31:59.127Z","0.2.0":"2022-03-15T13:55:41.111Z"},"bugs":{"url":"https://github.com/agence-webup/tiroir/issues"},"author":{"name":"Agence Webup"},"license":"MIT","homepage":"https://github.com/agence-webup/tiroir#readme","keywords":["drawer","vanilla","menu","mobile"],"repository":{"url":"git+https://github.com/agence-webup/tiroir.git","type":"git"},"description":"A simple drawer menu vanilla plugin","maintainers":[{"email":"tools@agence-webup.com","name":"agencewebup"},{"email":"parisi.robin@gmail.com","name":"robinparisi"}],"readme":"# Tiroir.js\n\nA simple but complete drawer menu plugin in vanilla JavaScript\n\n*⚠️ (Still in early development state)*\n\n![Demo keyboard navigation](demo.webp)\n\n## Documentation\n\n### Installation\n\nMethod                     | Procedure\n-------------------------- | ---------\nNPM                        | *coming soon*\nDownload                   | [Download zip](https://github.com/agence-webup/tiroir/archive/main.zip)\n\nThen Tiroir have some css you will have to add (feel free to custom it for a better integration in your UI):\n\n```html\n<link rel=\"stylesheet\" href=\"dist/tiroir/tiroir.css\">\n```\n\nFinally just link the Tiroir's code at the end of your document:\n\n```html\n<!-- Browser build -->\n<script src=\"dist/tiroir/tiroir.min.js\"></script>\n```\n\nOr as a JS module:\n```js\n// ES6 module build\nimport tiroir from 'Tiroir'\n```\n\n## Use\n\n### Instantiate your menu\n```javascript\nvar tiroir = new Tiroir({\n  trigger: document.querySelectorAll('[data-tiroir-btn]') // If you alredy now which element clicks will open the menu\n})\n```\n\n### Add content\nYou can create the content by yourself or use the API to build your navigation with a JSON/JS-Object (cf. below)\n\n#### Use a server side rendered content\n\nYou can give an `HTML element` as `content` option to init object. The plugin will send it into the menu.\n\n- If the content contain an element with a `data-tiroir-nav` attribute it gonna parse the contain and fill the stacking navigation with it.\n- If the content contain an element with a `data-tiroir-footer` attribute it gonna send it into the sticky footer element\n\n#### Add complex content with a JSON/JS-Object\n\nIf you have a complex navigation or don't want your link to be indexed by search engines, you can fill the stacking navigation with a JSON/JS-Object using the `setItems()` function.\n\nThe object must respect this type of structure to be able to work:\n\n ```javascript\nconst items = [\n    {\n        label: 'Home',\n        link: 'https://example.com/'\n    },\n    {\n        label: 'Blog',\n        items: [\n            {\n                label: 'Posts',\n                attributes: { // You can pass custom html attributes\n                    class: 'test'\n                },\n                link: 'https://example.com/blog/',\n                items: [\n                    {\n                        label: 'My super post 1',\n                        link: 'https://example.com/blog/test1',\n                    },\n                    {\n                        label: 'My super post 2',\n                        link: 'https://example.com/blog/test2',\n                    },\n                    {\n                        label: 'My super post 3',\n                        link: 'https://example.com/blog/test3',\n                    },\n                ]\n            },\n            {\n                label: 'Videos',\n                items: [\n                    {\n                        label: 'My first vlog',\n                        link: 'https://example.com/videos/1',\n                    },\n                    {\n                        label: 'My presentation video',\n                        link: 'https://example.com/videos/2',\n                    },\n                    {\n                        label: 'Vlog 2',\n                        link: 'https://example.com/videos/3',\n                    },\n                ]\n            },\n        ]\n    },\n    {\n        label: 'Contact',\n        link: 'https://example.com/contact'\n    },\n]\n\nconst menu = new Tiroir()\nmenu.setItems(items)\n\n```\n\n\n## Options\n\n  Name             | Type              | Description\n------------------ | ----------------- | -----------------------------------------\n  trigger          | node list/element | Element(s) who will open the menu on click\n  content          | node element      | Default menu content on load\n  directionReverse | boolean           | Inverse the menu opening's direction (on the right by default)\n  onOpen           | function          | Callback to execute when tiroir is opening\n  onClose          | function          | Callback to execute when tiroir is closing\n  resetLabel       | string            | Custom back-home button's label in the navigation\n  currentLabel     | string            | Custom current prefix's label in the navigation\n\n\n\nExample:\n```javascript\nconst menu = new Tiroir({\n  content: document.querySelector('[data-tiroir=\"menu-content\"]'),\n  trigger: document.querySelectorAll('[data-tiroir-btn]'),\n  resetLabel: 'Back at first',\n  currentLabel: 'All the ',\n  onOpen: function () {\n      console.log('menu opened')\n  },\n  onClose: function () {\n      console.log('menu closed')\n  }\n});\n```\n\n## API\n\nYou can use the API to generate content and open or close your menu with JS:\n\nName                      | Parameter type(s)       | Description\n------------------------- | ----------------------- | ----------\nopen()                    | *no parameter*          | Open your menu\nclose()                   | *no parameter*          | Close your menu\nsetItems(items)           | JSON or JS Array        | Set a custom navigation (more info on the structure below)\nparseItems(el)            | HTML element            | Parse a navigation container and fill the navigation with it\nsetContent(el)            | HTML element            | Set a custom content\nsetFooter(el)             | HTML element            | Set a custom content\n\n\nExample:\n```javascript\ntiroir.setItems(navContent);\ntiroir.open()\n```\n\n## Modify Tiroir.js\n\n 1. Setup dependencies: `npm i` (or `npm ci` if you don't want to impact package-lock)\n 2. Run hot-reloads server for development `npm run dev`\n 3. (Build for production `npm run build`)\n\n\n","readmeFilename":"README.md"}