AuthDone
A brief success mark, then the flow carries on by itself.
SourcePackage @weft-js/warp
Preview
tsx
import { AuthDone } from '@weft-js/warp'export function SignedIn() { return ( <AuthDone heading="h3" title="You're in" lede="Signed in as mara@weft.dev." delay={3600000} /> )}Installation
npm install @weft-js/warpUsage
tsx
import { AuthDone } from '@weft-js/warp'<AuthDone heading="h3" title="You're in" lede="Signed in as mara@weft.dev." delay={3600000} />Accessibility
- This has no shortcuts of its own: controls inside it use Tab, Enter and Space as usual, and warp's parts keep their roles and labels.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
title | unknown | — | The heading. |
lede | unknown | — | One line under it. |
heading | Heading | — | The title's level. |
delay | number | 1200 | Milliseconds before onContinue. |
| Event | Type | Default | Description |
|---|---|---|---|
onContinue | (() => void) | — | Goes on to the app. |
Parts
Every element carries a stable name, so you can style it from your own CSS: [data-scope="stack"] [data-part="lede"]
lede