chore(switch): improve storybook demo
This commit is contained in:
parent
e9611c6a3e
commit
32980e0180
1 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ Simple example that illustrates where validation feedback will be displayed.
|
||||||
id="newsletterCheck"
|
id="newsletterCheck"
|
||||||
name="newsletterCheck"
|
name="newsletterCheck"
|
||||||
label="Subscribe to newsletter"
|
label="Subscribe to newsletter"
|
||||||
.validators="${[new IsTrue()]}"
|
.validators="${[new IsTrue(null, {type: 'info'})]}"
|
||||||
></lion-switch>
|
></lion-switch>
|
||||||
`;
|
`;
|
||||||
}}
|
}}
|
||||||
|
|
@ -108,6 +108,6 @@ const IsTrue = class extends Validator {
|
||||||
id="newsletterCheck"
|
id="newsletterCheck"
|
||||||
name="newsletterCheck"
|
name="newsletterCheck"
|
||||||
label="Subscribe to newsletter"
|
label="Subscribe to newsletter"
|
||||||
.validators="${[new IsTrue()]}"
|
.validators="${[new IsTrue(null, {type: 'info'})]}"
|
||||||
></lion-switch>
|
></lion-switch>
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue