Search Plus UI Blocks

Find a block, a category or a site

Phone sign-in with codesign-in-phone-otp

Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/sign-in-phone-otp.json

Auth · 14 variants

← → to step through · + on a thumbnail to compare side by side (up to 3)

/preview/sign-in-phone-otp
Open ↗

Default content

{
  "brand": "lantorra",
  "brandHref": "#",
  "title": "Sign in with your phone",
  "description": "We'll text you a 6-digit code. Use the number on your booking so your stays and host messages are here.",
  "fields": [],
  "phone": {
    "label": "Mobile number",
    "countryLabel": "Country code",
    "countries": [
      {
        "dial": "+351",
        "name": "Portugal"
      },
      {
        "dial": "+44",
        "name": "United Kingdom"
      },
      {
        "dial": "+49",
        "name": "Germany"
      },
      {
        "dial": "+34",
        "name": "Spain"
      },
      {
        "dial": "+1",
        "name": "United States"
      },
      {
        "dial": "+90",
        "name": "Türkiye"
      }
    ],
    "placeholder": "912 345 678",
    "hint": "Standard text message rates may apply. We never share your number with hosts.",
    "verify": {
      "title": "Enter the code we texted",
      "description": "Sent to {phone}. The code expires in 10 minutes and works once.",
      "submitLabel": "Verify and sign in",
      "changeLabel": "Change number",
      "resendLabel": "Text me a new code",
      "cooldown": {
        "after": 30,
        "waitText": "New code in {seconds}s"
      }
    }
  },
  "code": {
    "label": "6-digit code",
    "length": 6,
    "hint": "Wrong code five times locks phone sign-in for 15 minutes."
  },
  "submitLabel": "Text me a code",
  "legal": {
    "text": "By continuing you agree to Lantorra's",
    "links": [
      {
        "label": "Guest terms",
        "href": "#"
      },
      {
        "label": "Privacy notice",
        "href": "#"
      }
    ],
    "joiner": "and"
  },
  "alternatives": {
    "title": "No phone signal?",
    "items": [
      {
        "icon": "mail",
        "label": "Sign in with email instead",
        "description": "Get a sign-in link at the address on your booking.",
        "href": "#"
      }
    ]
  },
  "switch": {
    "text": "First stay with us?",
    "link": {
      "label": "Create a guest account",
      "href": "#"
    }
  },
  "footer": [
    {
      "label": "Help",
      "href": "#"
    },
    {
      "label": "Privacy",
      "href": "#"
    },
    {
      "label": "Terms",
      "href": "#"
    }
  ]
}