JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://semantic-ui.com/build/packaged/javascript/semantic.js"></script>
<link rel="stylesheet" href="http://semantic-ui.com/build/packaged/css/semantic.css">
<script src="http://brigand.github.io/knockout-semantic/lib/knockout-min.js"></script>
<script src="http://brigand.github.io/knockout-semantic/lib/knockout-es5.min.js"></script>
<script src="http://brigand.github.io/knockout-semantic/build/knockout-semantic.js"></script>
<s-dropdown data="dropdown"></s-dropdown>
<div class="ui header">
You selected "<span data-bind="text: dropdown.selected"></span>"
</div>
CSS
html, body {
font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;
}
JavaScript
var viewModel = {
dropdown: ko.track({
options: ["Lary", "Moe", "Curly"],
defaultText: "Stooges",
selected: ""
})
}
ko.applyBindings(viewModel);