コンポーネント フォーム フォームコンポーネント

フォームコンポーネント

ダッシュボードのトライアドカラースキームを持つ複雑なマテリアルデザインフォームコンポーネント。応答性が高く、ダークモードをサポートしています。

プレビュー

HTMLコード

<div class="min-h-screen bg-gray-100 dark:bg-gray-900 p-8 flex items-center justify-center">
  <div class="max-w-4xl w-full bg-white dark:bg-gray-800 rounded-lg shadow-xl p-8">
    <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-8 text-center">Dashboard Settings</h2>
    <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
      <div>
        <label for="username" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Username</label>
        <input type="text" id="username" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="john.doe">
      </div>
      <div>
        <label for="email" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Email Address</label>
        <input type="email" id="email" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="john.doe@example.com">
      </div>
      <div>
        <label for="password" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Password</label>
        <input type="password" id="password" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="********">
      </div>
      <div>
        <label for="confirm-password" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Confirm Password</label>
        <input type="password" id="confirm-password" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="********">
      </div>
      <div class="md:col-span-2">
        <label for="bio" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Bio</label>
        <textarea id="bio" rows="4" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="Tell us about yourself..."></textarea>
      </div>
      <div class="md:col-span-2">
        <label class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Notification Settings</label>
        <div class="flex items-center mb-4">
          <input type="checkbox" id="email-notifications" class="mr-2">
          <label for="email-notifications" class="text-gray-700 dark:text-gray-200">Receive email notifications</label>
        </div>
        <div class="flex items-center">
          <input type="checkbox" id="push-notifications" class="mr-2">
          <label for="push-notifications" class="text-gray-700 dark:text-gray-200">Receive push notifications</label>
        </div>
      </div>
    </div>
    <div class="flex justify-end mt-8">
      <button class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded mr-4">Cancel</button>
      <button class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded">Save Settings</button>
    </div>
  </div>
</div>

関連コンポーネント

フォームコンポーネント

3D モノクロデザインのソーシャルメディアインターフェイス用の、複雑でレスポンシブなダークテーマ対応フォームコンポーネント。Tailwind CSS に dark: プレフィックスを付けてダークモードを使用し、フォーム要素の例を含めます。

開ける

Glassmorphism はコンポーネントを形成します

Glassmorphism は、アースカラー、レスポンシブデザイン、およびブログ/コンテンツWebサイト用のダークテーマサポートを備えたコンポーネントを形成します。

開ける

レトロ/ビンテージフォームコンポーネント

80 年代と 90 年代に触発されたレトロ/ビンテージの美学でスタイル設定されたフォーム コンポーネントで、レスポンシブ デザインと Tailwind CSS を使用したダーク テーマのサポートが特徴です。

開ける