> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# widget:login-page

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

[localhost link]: http://localhost:3000/docs/4/app-studio/reference/tags/lightning.directive.widgetLoginPage

[mintlify link]: https://doc.lucidworks.com/docs/4/app-studio/reference/tags/lightning.directive.widgetLoginPage

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/1159

<LwTemplate />

## Description

Creates a login page with a form. All of the attributes are passed to
the form.

## Usage

as element:

```xml wrap  theme={"dark"}
<widget:login-page
       [logo="{string}"]
       [logo-alt="{string}"]
       [title="{string}"]
       [message="{string}"]
       [action="{string}"]
       [method="{string}"]
       [username="{string}"]
       [password="{string}"]
       [username-placeholder="{string}"]
       [password-placeholder="{string}"]
       [remember="{string}"]
       [submit-label="{string}"]
       [access-denied="{string}"]
       [error-message="{string}"]>
</widget:login-page>
```

#### Parameters

| Param                              | Type       | Details                                                                                                                                     |
| ---------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| logo  *(optional)*                 | **string** | The path to the logo                                                                                                                        |
| logoAlt  *(optional)*              | **string** | The alt text for the logo                                                                                                                   |
| title  *(optional)*                | **string** | The title text that displays below the logo                                                                                                 |
| message  *(optional)*              | **string** | The message to display below the title                                                                                                      |
| action  *(optional)*               | **string** | URL to send the form data to                                                                                                                |
| method  *(optional)*               | **string** | The form method to use. Default POST                                                                                                        |
| username  *(optional)*             | **string** | The name of the username input                                                                                                              |
| password  *(optional)*             | **string** | The name of the password input                                                                                                              |
| username-placeholder  *(optional)* | **string** | The placeholder of the username input                                                                                                       |
| password-placeholder  *(optional)* | **string** | The placeholder of the password input                                                                                                       |
| remember  *(optional)*             | **string** | The name of the remember input. Default: remember. Set to false to hide remember me checkbox  *(default: "remember")*                       |
| submit-label  *(optional)*         | **string** | The text on the submit button. Default: Login  *(default: "Login")*                                                                         |
| access-denied  *(optional)*        | **string** | Checks the URL for the value of access-denied, if found the error message will be displayed E.g. access=denied                              |
| error-message  *(optional)*        | **string** | The error message to display when the login is rejected. Default: Invalid username or password  *(default: "Invalid username or password")* |

## Example

#### Source

```xml wrap  theme={"dark"}
<widget:login-page></widget:login-page>
```

#### Result

<img src="https://mintcdn.com/lucidworks/J_LymSfRoWq3UOvg/assets/images/app-studio/as-examples/tags/widgetLoginPage.png?fit=max&auto=format&n=J_LymSfRoWq3UOvg&q=85&s=cc59280bb4a6ca0b49c713ca3d84f155" alt="Result" width="1024" height="498" data-path="assets/images/app-studio/as-examples/tags/widgetLoginPage.png" />
