Skip to content

SiLoginBasicComponent documentation

import { SiLoginBasicComponent } from '@siemens/element-ng/landing-page';

A basic login component that supports both single-step and two-step authentication flows.

This component provides a standard login form with username and password fields. It can be configured to work in two-step mode where username validation happens first, followed by password entry.

Example:

<si-login-basic
  [forgotPasswordLink]="forgotPasswordLink"
  [registerNowLink]="registerNowLink"
  [twoStep]="true"
  [loading]="isLoading"
  (login)="handleLogin($event)"
  (usernameValidation)="handleUsernameValidation($event)">
</si-login-basic>

Input Properties

NameTypeDefaultDescription
backButtonLabel
TranslatableString $localize`:@@SI_LOGIN_BASIC.BACK:Back`

Description of back button.

disableLogin
boolean false

Disables the login button.

loading
boolean false

Indicates whether the login button should show a loading state.

loginButtonLabel
TranslatableString $localize`:@@SI_LOGIN_BASIC.LOGIN:Log in`

Label for login button.

nextButtonLabel
TranslatableString $localize`:@@SI_LOGIN_BASIC.NEXT:Next`

Description of next button.

passwordLabel
TranslatableString $localize`:@@SI_LOGIN_BASIC.PASSWORD:Password`

Label for password input field.

twoStep
boolean false

Enables the two-step login flow.

usernameLabel
TranslatableString $localize`:@@SI_LOGIN_BASIC.USERNAME:Username`

Label for username input field.

Output Properties

NameTypeDescription
login
UsernamePassword

Emits username and password on login event.

usernameValidation
UsernameValidationPayload

Emits username when user clicks on next button.

valueChanged
UsernamePassword

Emits username and password on value change.

Types Documentation

import type { Link } from '@siemens/element-ng/link';
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.

import type { UsernamePassword } from '@siemens/element-ng/landing-page';

UsernameValidationPayload

Pick<UsernamePassword, 'username'> & { validate: (isValid: boolean) => void; }
type alias
import type { UsernameValidationPayload } from '@siemens/element-ng/landing-page';

Except where otherwise noted, content on this site is licensed under MIT License.