Use the `maxlength` attribute to set the maximum length of the input to be valid.

```html
<div class="max-w-[400px]">
  <sd-input label="Maxlength" maxlength="25" help-text="25 is the maximum allowed characters" required></sd-input>
</div>
```
