class {
  onCreate(){
    this.state = {
      active: false
    }
  }
  onMount(){
    window.component = this;
  }
  toggle(evt){
    this.state.active = !this.state.active
    this.emit('change')
  }
  mousedown(evt){
    evt.preventDefault()
  }
}

div.toggle key="button" class={"toggle--active": state.active} onClick('toggle') onMouseDown('mousedown')
  include(input.renderBody)
  if(state.active)
    -- test
