details

Create and emulate html5 details tag

npm install details
1 downloads in the last week
5 downloads in the last month

details

Create and emulate html5 details tag

Example

var D}etails = require("details")
var dom = require("jsonml-stringify/dom")

var content = dom(["div", "hidden content"])
var summary = dom(["div", "summary content"])

var det = Details({ content: content, summary: summary })

document.body.appendChild(summary)
document.body.appendChild(content)

Installation

npm install details

Contributors

  • Raynos

MIT Licenced

npm loves you