Skip to content

Commit bb1e303

Browse files
committed
doc: add LoginImage doc
1 parent 6ed6802 commit bb1e303

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { Canvas, Meta } from '@storybook/blocks'
2+
3+
import * as LoginImage from './LoginImage.stories'
4+
5+
<Meta of={LoginImage} />
6+
7+
# LoginImage
8+
9+
The `LoginImage` is providing an image for the login page. The image is already configured to offer a variant
10+
in dark mode. The component expose a `shake` function that triggers a shaking animation on the Datashare logo
11+
inside the image.
12+
13+
For instance:
14+
15+
```html
16+
<div class="text-center">
17+
<login-image ref="image" class="my-5" />
18+
<button-icon label="Shake it!" icon-left="disco-ball" icon-left-weight="fill" @click="image.shake()" />
19+
</div>
20+
```
21+
22+
Will result to:
23+
24+
<Canvas of={LoginImage.Default} sourceState='none' />

src/stories/components/Login/LoginImage.stories.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import LoginImage from '@/components/Login/LoginImage'
55

66
export default {
77
title: 'Components/Login/LoginImage',
8-
tags: ['autodocs'],
98
component: LoginImage,
109
render: () => ({
1110
components: {

0 commit comments

Comments
 (0)