Skip to content

Variable: Login

Examples / @xmachines/play-react-demo / Login

const Login: ComponentFn<AuthCatalog, "Login">;

Defined in: packages/play-react/examples/demo/src/components/Login.tsx:14

Login — Authentication form

Uses ComponentFn<AuthCatalog, “Login”> for catalog-typed props. Username is bound via $bindState from the spec — useStateBinding provides reactive two-way binding to the @xstate/store atom backing the current view’s state store. Emits “submit” on form submit — spec resolves the username state and calls login handler.