Commit 66260aac authored by ninabreznik's avatar ninabreznik Committed by yann300

Create dropdown.js

parent 3460f05c
var yo = require('yo-yo')
var csjs = require('csjs-inject')
// -------------- styling ----------------------
var csjs = require('csjs-inject')
var styleGuide = require('./style-guide')
var styles = styleGuide()
module.exports = dropdown
// options = []
function dropdown (options = []) {
var el = yo`
<select>
${options.map(opt => yo`<option>${opt}</option>`)}
</select>
`
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment