Skip to content
weftGitHub

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/warp

Usage

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

PropTypeDefaultDescription
titleunknown—The heading.
ledeunknown—One line under it.
headingHeading—The title's level.
delaynumber1200Milliseconds before onContinue.
EventTypeDefaultDescription
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

RelatedSign inSign up