Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input groups example issues #3087

Open
phamduylong opened this issue Jan 8, 2025 · 1 comment
Open

Input groups example issues #3087

phamduylong opened this issue Jan 8, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@phamduylong
Copy link
Contributor

Link to the Page

https://next.skeleton.dev/docs/tailwind/forms#groups

Describe the Issue (screenshots encouraged!)

The code in the example imports icons from lucide-react and seems to be written in JSX but it's using class instead of className.

---
import { CircleDollarSign, Check, Search } from 'lucide-react';
---

<form class="mx-auto w-full max-w-md space-y-8">
  {/* Website */}
  <div class="input-group divide-surface-200-800 grid-cols-[auto_1fr_auto] divide-x">
    <div class="input-group-cell preset-tonal-surface">https://</div>
    <input type="text" placeholder="www.example.com" />
  </div>
  {/* Amount */}
  <div class="input-group divide-surface-200-800 grid-cols-[auto_1fr_auto] divide-x">
    <div class="input-group-cell preset-tonal-surface">
      <CircleDollarSign size={16} />
    </div>
    <input type="text" placeholder="Amount" />
    <select>
      <option>USD</option>
      <option>CAD</option>
      <option>EURO</option>
    </select>
  </div>
  {/* Username */}
  <div class="input-group divide-surface-200-800 grid-cols-[1fr_auto] divide-x">
    <input type="text" placeholder="Enter Username..." />
    <button class="btn preset-filled" title="Username already in use.">
      <Check size={16} />
    </button>
  </div>
  {/* Search */}
  <div class="input-group divide-surface-200-800 grid-cols-[auto_1fr_auto] divide-x">
    <div class="input-group-cell">
      <Search size={16} />
    </div>
    <input type="search" placeholder="Search..." />
    <button class="btn preset-filled">Submit</button>
  </div>
</form>
@phamduylong phamduylong added the documentation Improvements or additions to documentation label Jan 8, 2025
@phamduylong
Copy link
Contributor Author

@endigo9740 I spotted this when testing for #2985 so I'll probably will throw a PR for both, that is if I can fix #2985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant