<script>
  export let block;
  export let onChange;

  const update = (patch) => onChange({ ...block.data, ...patch });
</script>

<label>
  Высота (px)
  <input
    type="number"
    value={block.data.height ?? 40}
    on:input={(e) => update({ height: parseInt(e.target.value, 10) || 0 })}
  />
</label>
