Split Benefits Sign-up
A registration form beside a checkmarked benefits panel that stacks below it on mobile.
3 個のフレームワーク中級
A centred registration card with name, email and password fields and a full-width submit.
<!--
A real <label for> per field, not a placeholder pretending to be one: a
placeholder vanishes on the first keystroke and is not reliably announced.
autocomplete + type earn the right mobile keyboard and browser autofill.
-->
<form class="mx-auto w-full max-w-sm rounded-2xl border border-gray-200 bg-white p-6 shadow-sm sm:p-8 dark:border-gray-800 dark:bg-gray-950" action="#" method="post">
<h1 class="text-xl font-bold tracking-tight text-gray-900 dark:text-gray-100">Create your account</h1>
<p class="mt-1 text-sm text-gray-600 dark:text-gray-400">Start your 14-day free trial. No card required.</p>
<div class="mt-6 space-y-4">
<div>
<label for="scc-name" class="block text-sm font-medium text-gray-700 dark:text-gray-300">Full name</label>
<input id="scc-name" name="name" type="text" autocomplete="name" required placeholder="Ada Lovelace"
class="mt-1.5 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900 shadow-sm placeholder:text-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 dark:placeholder:text-gray-500 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950" />
</div>
<div>
<label for="scc-email" class="block text-sm font-medium text-gray-700 dark:text-gray-300">Email address</label>
<input id="scc-email" name="email" type="email" autocomplete="email" required placeholder="you@company.com"
class="mt-1.5 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900 shadow-sm placeholder:text-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 dark:placeholder:text-gray-500 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950" />
</div>
<div>
<label for="scc-password" class="block text-sm font-medium text-gray-700 dark:text-gray-300">Password</label>
<input id="scc-password" name="password" type="password" autocomplete="new-password" required placeholder="At least 8 characters"
class="mt-1.5 block w-full rounded-lg border border-gray-300 bg-white px-3 py-2 text-sm text-gray-900 shadow-sm placeholder:text-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 dark:placeholder:text-gray-500 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950" />
</div>
</div>
<button type="submit"
class="mt-6 inline-flex w-full items-center justify-center rounded-lg bg-blue-600 px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-blue-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white motion-reduce:transition-none dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950">
Create account
</button>
<p class="mt-4 text-center text-sm text-gray-600 dark:text-gray-400">
Already have an account?
<a href="#" class="font-semibold text-blue-600 hover:text-blue-500 focus-visible:outline-none focus-visible:underline dark:text-blue-400">Sign in</a>
</p>
</form>| Prop | 型 | デフォルト | 説明 |
|---|---|---|---|
title | string | 'Create your account' | カードの見出しテキスト。 |
subtitle | string | - | Subtitle |
submitLabel | string | 'Create account' | Submit label |
signInHref | string | '#' | Sign in href |
onSubmit | (event: FormEvent<HTMLFormElement>) => void | - | 送信時にフォームの値とともに呼ばれます。 |
className | string | - | ルート要素にマージされる追加クラス。 |
Every field has a real `<label htmlFor>` rather than a placeholder standing in for one, and `autocomplete="new-password"` tells the browser to offer a generated password instead of autofilling an existing one. It is UI-only: `onSubmit` defaults to a no-op, so nothing is posted until you wire a handler.