File size: 737 Bytes
0ad74ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<script lang="ts">
	import { Meta, Template, Story } from "@storybook/addon-svelte-csf";
	import Login from "./Login.svelte";
</script>

<Meta
	title="Components/Login Page"
	component={Login}
	argTypes={{
		auth_message: {
			control: "text",
			description: "The optional auth message to display",
			name: "label",
			value: "Gradio Button"
		}
	}}
/>

<Template let:args>
	<Login {...args} />
</Template>

<Story name="Login page without auth message" args={{ auth_message: null }} />
<Story
	name="Login page with auth message"
	args={{ auth_message: "Log in to this great gradio app" }}
/>
<Story
	name="Login page with HTML auth message"
	args={{
		auth_message: "<em>Log in to this <strong>great</strong> gradio app</em>"
	}}
/>