LoginFormOptions
Loading example…
Row under the fields with a remember-me checkbox (reported to onSubmit as remember) and a help slot.
Import
Section titled “Import”import { LoginFormOptions } from "@jcsoftdev/ui/auth";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/auth/login-form.
<LoginFormOptions portals={[]} />| Prop | Type | Default | Description |
|---|---|---|---|
rememberLabel |
string |
Label of the checkbox. Defaults to the localized “Remember me”. | |
help |
ReactNode |
Help link or button at the end of the row. | |
helpHref |
string |
Adds the localized “Need help?” link to this address when help is not given. |
* marks a required prop.
It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).
Storybook stories
Section titled “Storybook stories”- Standalone
- With Portals
- Portal Tiles Focus And Check
- Complete
- Missing Identifier
- Wrong Password
- Loading
- Controlled Error
- Inside Auth Layout
- Repeated Error
- Controlled Outcome Reset
- Keeps Default Active Index
- Submit Keeps Focus While Loading
Source
Section titled “Source”packages/ui/src/auth/login-form/parts.tsx