Skip to content

manojc/web-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Component For Login

This custom element provides a functionality of a login widget & it comes up with following features.

  • Header Attribute

    This attribute is used to change the header. It's default value is Login

    Example - <t-login-widget header="Sign In"></t-login-widget>

    manoj

  • Post Url Attribute

    Upon setting this attribute with a valid post url, this component will fire a post call to this url. The response data from post call is made available using a custom event login-success. If the post url attribute is not set, login-success event is fired without making the post call. The payload for this post call is an object like -

{ username: 'John Doe', password: 'qwerty123!@#' }

> Example -
> `<t-login-widget post-url="/login"></t-login-widget>`

About

Provides a login widget with few additional features.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages