import { Component } from 'substance'

export default class TextInput extends Component {

  render($$) {
    let node = this.props.node
    let TextPropertyEditor = this.getComponent('text-property-editor')

    return $$('div').addClass('sc-text-input').append(
      $$('div').addClass('se-label').append(this.props.label),
      $$(TextPropertyEditor, {
        placeholder: this.props.label,
        path: node.getTextPath(),
        disabled: this.props.disabled
      }).ref(node.id).addClass('se-text-editor')
    )
  }

}

@@ -130,16 +130,49 @@
 ps.node%0A
+    let label = this.props.label%0A
     let 
@@ -243,14 +243,16 @@
     
-return
+let el =
  $$(
@@ -283,16 +283,42 @@
 -input')
+%0A%0A    if(label) %7B%0A      el
 .append(
@@ -318,16 +318,18 @@
 append(%0A
+  
       $$
@@ -368,26 +368,44 @@
 end(
-this.props.label),
+label)%0A      )%0A    %7D%0A%0A    el.append(
 %0A   
@@ -453,27 +453,16 @@
 holder: 
-this.props.
 label,%0A 
@@ -586,16 +586,31 @@
 ')%0A    )
+%0A%0A    return el
 %0A  %7D%0A%0A%7D%0A

Make TextInput label optional.