title: How to disable field conditionally in Svelte?
body: <p>In Angular 2+ (for example), I can use this syntax to disable a field conditionally:</p>
  <pre><code>&lt;input [disabled]=&quot;booleanCondition&quot; type=&quot;text&quot;&gt;
  </code></pre>
  <p>In Svelte I'm trying to do as follows, but it doesn't work:</p>
  <pre><code>&lt;input {booleanCondition ? 'disabled=&quot;&quot;' : ''} type=&quot;text&quot;&gt;
  </code></pre>
  <p>How can I do it?</p>