chore(input): update storybook validation demo
This commit is contained in:
parent
ae54208bfd
commit
332075d68e
1 changed files with 9 additions and 0 deletions
|
|
@ -207,6 +207,7 @@ Our default validators come with default translations already.
|
||||||
return html`
|
return html`
|
||||||
<lion-input
|
<lion-input
|
||||||
label="Value"
|
label="Value"
|
||||||
|
.modelValue=${'Too long input'}
|
||||||
.validators=${[new MaxLength(5)]}
|
.validators=${[new MaxLength(5)]}
|
||||||
></lion-input>
|
></lion-input>
|
||||||
<button @click=${() => localize.locale = 'de-DE'}>DE</button>
|
<button @click=${() => localize.locale = 'de-DE'}>DE</button>
|
||||||
|
|
@ -217,3 +218,11 @@ Our default validators come with default translations already.
|
||||||
`;
|
`;
|
||||||
}}
|
}}
|
||||||
</Story>
|
</Story>
|
||||||
|
|
||||||
|
```html
|
||||||
|
<lion-input
|
||||||
|
label="Value"
|
||||||
|
.modelValue=${'Too long input'}
|
||||||
|
.validators=${[new MaxLength(5)]}
|
||||||
|
></lion-input>
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue