Skip to content

Login component

Defining a simple login component:

All attributes are optional:

  • the username_placeholder (Username by default)
  • the password_placeholder (Password by default)
  • the button_label (Login by default)
  • the button_color (white by default) password_placeholder: str = 'Password', button_label: str = 'Login', button_color: str = 'white'

Rendering:

Login components

An example of such a component in a dash application