svelte-easy-auth-form
v1.0.2
Published
Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
Downloads
22
Readme
create-svelte
Everything you need to build a Svelte library, powered by create-svelte
.
Read more about creating a library in the docs.
Creating a project
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
Initialization
npm install svelte-easy-auth-form
Application
This package can only run client-side in .svelte files
<script>
import Form from 'svelte-easy-auth-form'
</script>
<Form />
The Form component takes in 3 props:
<Form formType = "String, Sign In | Sign Up" formMessage = "String, Messages like 'User Doesn't exist' or 'wrong password' or 'null' if you don't have any" logo = 'string, link to your logo or null if you dont have any'/>
Example
<script lang = "ts">
import Form from 'svelte-easy-auth-form'
</script>
<Form formType = "Sign up" formMessage = "Invalid username of password" logo = "www.logo.com/logo.png" />