@akhatmirzo/ui

Login

Sign-in form with phone or email and password, remember me, a Google button and an error state.

Add with the CLI: npx @akhatmirzo/cli add login

Hisobga kirish

Hisobingiz yo'qmi? Ro'yxatdan o'ting

+998

Kirish orqali siz foydalanish shartlariga rozilik bildirasiz.

What's inside

  • Phone or email, switched with a SegmentedControl; PhoneInput handles the +998 format.
  • Validation with parsePhone and isValidEmail; errors show under each field.
  • A "server" error (Alert) — try a password shorter than 8 characters.
  • Wide containers get a brand panel on the left, narrow ones show the form only.

Components used

Installation

The CLI copies the block file into your project (components/blocks/login.tsx) and offers to install the packages it needs:

npx @akhatmirzo/cli add login

Manually: install the packages and copy the file from the "Code" tab into your project.

pnpm add @akhatmirzo/ui @akhatmirzo/tokens @akhatmirzo/core lucide-react