Create dropdown.js

pull/1/head
ninabreznik 7 years ago committed by yann300
parent 3460f05c2d
commit 66260aac3a
  1. 18
      src/app/dropdown.js

@ -0,0 +1,18 @@
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>
`
}
Loading…
Cancel
Save