parent
3460f05c2d
commit
66260aac3a
@ -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…
Reference in new issue