import './LabeledField.scss';
import Input from './Input.jsx';

export default D.declare('view.cmp.field.LabeledField', (cfg)=>
  <div class="labeled-field">
    <label class="labeled-field__label">
        <span class="labeled-field__label-text">{cfg.label}</span>
        <Input class="labeled-field__input" type={cfg.type} placeholder={cfg.placeholder} {...cfg}/>
    </label>
  </div>
)
