-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Canvas, Meta } from '@storybook/blocks' | ||
|
||
import * as LoginImage from './LoginImage.stories' | ||
|
||
<Meta of={LoginImage} /> | ||
|
||
# LoginImage | ||
|
||
The `LoginImage` is providing an image for the login page. The image is already configured to offer a variant | ||
in dark mode. The component expose a `shake` function that triggers a shaking animation on the Datashare logo | ||
inside the image. | ||
|
||
For instance: | ||
|
||
```html | ||
<div class="text-center"> | ||
<login-image ref="image" class="my-5" /> | ||
<button-icon label="Shake it!" icon-left="disco-ball" icon-left-weight="fill" @click="image.shake()" /> | ||
</div> | ||
``` | ||
|
||
Will result to: | ||
|
||
<Canvas of={LoginImage.Default} sourceState='none' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters