ui/packages/consul-ui/app/modifiers/disabled.mdx
The disabled modifer works similarly to the <fieldset disabled>
attribute,
in that it will disable all form elements within the fieldset, which is really
useful for controlling disabled states of entire forms with just one
modifier/attributes
There are three downsides to the <fieldset disabled> attribute:
Therefore we use a {{disabled true|false}} modifier to work around these
downsides.
The following shows a disabling a group of form elements but excluding one single form element from being disabled.
<style> input { border: 1px solid black; } </style><div
{{disabled true}}
>
Disabled: <input type="text" placeholder="Disabled" />
Disabled: <input type="checkbox" />
Enabled: <input
{{disabled false}}
placeholder="Not disabled"
type="text"
/>
</div>