chore(switch): improve storybook demo

This commit is contained in:
qa46hx 2020-01-23 15:49:54 +01:00
parent e9611c6a3e
commit 32980e0180

View file

@ -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>
``` ```