Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. User
  • Overview
  • Usage
  • Components Customization
  • Elements
    • Apps Icons
    • Breadcrumb
    • Color Picker
    • Conditional Fields
    • Count Down
    • Filters
    • Infinite Scroll
    • List Tile
    • Loading
    • Map
    • Modal
    • Placeholder
    • Progress Bar
    • Rating Stars
    • Reviews
    • Reviews Summary
    • Sheet
    • Skeleton
    • Slider
    • Social
    • Social Share
    • Tabs
  • Form
    • Button
    • Bottom Alert
    • Contacts
    • Date Time Picker
    • File Upload
    • Menu
    • Quantity Input
    • Select
    • Tel Input
  • Product
    • Add Product
    • Advertisement
    • Comments
    • Conditional Offer
    • Gifting
    • Installment
    • Meta Data
    • Offer
    • Offer Modal
    • Orders
    • Payments
    • Product Availability
    • Product Card
    • Products List
    • Product Options
    • Product Size Guide
    • Products Slider
    • Quick Buy
    • Quick Order
    • Scopes
    • Search
  • User
    • Cart Summary
    • Localization
    • Login
    • Loyalty
    • Rating
    • User Menu
    • User Profile
    • User Settings
    • Verify
  1. User

Login

The <salla-login-modal> web component displays the login form, which prompts a user for their credentials in order to authenticate their access. It usually comprises of the standard username or email as well as a phone number. It consists of a Modal activated by the Button component, and that can be customized using the properties' parameters available.
Note
Available API Endpoints for the Login component is:
Auth Login

Example#

Login Example

Usage#

HTML
SASS

Properties#

PropertyAttributeDescriptionTypeDefault
InlineinlineDisplay the login modal in an inline mannerbooleanundefined
Is Email Allowedis-email-allowedGranting email input by the merchantbooleanundefined
Is Email Requiredis-email-requiredRequiring email input by the merchantbooleanfalse
Is Mobile Allowedis-mobile-allowedGranting mobile input by the merchant. Outside KSA is set to false by defaultbooleantrue
Support Web Authenticationsupport-web-authOnce the API verifyies the success of the process, it will login the customer in web pages.booleantrue
Without Reloadwithout-reloadRender reloading of the page after a successful loginbooleanfalse

Methods#

The pre-defined methods allow for calling the function built by Salla which is open to display the Login Component.
MethodDescriptionReturn Type
open(event?: any)Opens the login's componentPromise<HTMLElement>

Slots#

Theslots makes it customizable to modify certain labels, such as before-login-email & after-registeration, as well as adding footer extended feature.
SlotDescription
before-login-emailShows content before the login with email screen has appeared
before-login-mobileShows content before the mobile with mobile screen has appeared
before-login-typeShows content before the login types has been listed in the login screen
before-registrationShows content before user registers
after-login-emailShows content after the login with email screen has appeared
after-login-mobileShows content after the login with mobile screen has appeared
after-login-typeShows content after the login types has been listed in the login screen
after-registration Shows content after user registers
footerShows content at the modal's footer
Modified at 2025-03-04 12:54:02
Previous
Localization
Next
Loyalty