1. User
Salla Platform Docs
  • Overview
  • Usage
  • Components Customization
  • Predefined vs Bundle Components
  • Elements
    • Conditional Fields
    • Count Down
    • Filters
    • Infinite Scroll
    • List Tile
    • Loading
    • Map
    • Placeholder
    • Progress Bar
    • Rating Stars
    • Skeleton
    • Slider
    • Social Share
    • Tabs
    • Apps Icons
    • Breadcrumb
    • Social
    • Reviews
    • Reviews Summary
    • Color Picker
    • Modal
    • Sheet
    • Notifications
  • Form
    • Button
    • Date Time Picker
    • Tel Input
    • Select
    • File Upload
    • Menu
    • Bottom Alert
    • Contacts
    • Quantity Input
    • Edit Order Button
  • Product
    • Product Card
    • Quick Buy
    • Meta Data
    • Payments
    • Comments
    • Orders
    • Conditional Offer
    • Installment
    • Add Product
    • Gifting
    • Offer
    • Offer Modal
    • Product Availability
    • Products List
    • Product Options
    • Product Size Guide
    • Products Slider
    • Quick Order
    • Scopes
    • Search
    • Advertisement
    • Multiple Bundle Product
    • Order Details
  • User
    • Cart Summary
    • User Menu
    • User Profile
    • Localization
    • Login
    • Loyalty
    • Rating
    • User Settings
    • Verify
  • Component Bundle
    • Directory Structure
    • Create Bundle
    • Setup Bundle
    • Publish Bundle
    • Publish Bundle Requirements
    • Getting Started
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Salla - Opensource
Salla - Developers Community
  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 2026-07-09 11:27:26
Previous
Localization
Next
Loyalty