File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
src/stories/components/Login Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
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' />
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import LoginImage from '@/components/Login/LoginImage'
5
5
6
6
export default {
7
7
title : 'Components/Login/LoginImage' ,
8
- tags : [ 'autodocs' ] ,
9
8
component : LoginImage ,
10
9
render : ( ) => ( {
11
10
components : {
You can’t perform that action at this time.
0 commit comments