           span labelAttributes, (label unless renderLabelAsHtml) if label?
 
 class SelectListElement extends HTMLElement
+  maxItems: 10
+
   createdCallback: ->
     @subscriptions = new CompositeDisposable
     @classList.add "popover-list"

    ol
      className: "list-group",
      input ref: 'input', key: 'autocomplete-plus-input'
      @state.items.slice(0, @maxItems).map ({word, label, renderLabelAsHtml, className}, index) =>
        itemClasses = []
        itemClasses.push className if className
        itemClasses.push 'selected' if index == @state.selectedIndex

_ = require 'underscore-plus'

SelectListComponent = React.createClass

  getInitialState: ->
    items: @props.items || []
