Sign-in
Auth card — email/password + remember + submit. Composed block.
block block
Preview
Installation
npx slintcn@latest add sign-inUsage
import { SignIn } from "slintcn/blocks/sign-in.slint";
SignIn {
email <=> email;
password <=> password;
submit => { /* authenticate */ }
forgot => { /* … */ }
}
Properties
email
in-out
string
Two-way bound to the email field.
password
in-out
string
Two-way bound to the password field.
remember
in-out
bool
Two-way 'remember me' checkbox state.
submit
callback
()
Fired on the submit button.
forgot
callback
()
Fired on the 'forgot password' link.
create-account
callback
()
Fired on the 'create account' link.
Dependencies
Installed automatically as transitive dependencies of slintcn add sign-in.