Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
REACT-How can I include ly button in my gray bar with tailwindcss?

I want to include my - button in my gray bar. As you can see in the picture, my blue button exceeds the gray bar

export default function App() {
...
return (
<div className="text-md font-bold">
                            Invitee {i + 1}
                            <span className="float-right ">
                                {!!i && (
                                    <Button className="rounded-md float-right mt-4" primary onClick={() => removeInvitee(Id)}>
                                        -
                                    </Button>
                                )}
                            </span>
...
)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use the flexbox properties to make the design you want. I had created the very similar example below , please add your functions here and replace class with className.

<script src="https://cdn.tailwindcss.com"></script>
<div class="container mx-auto py-4">
<div class="bg-gray-200 text-md flex items-center justify-between rounded-r-md">
  <div class=" font-bold  text-gray-500 ml-4" >Invitee 2</div>
  <div class="">
    <Button primary class="rounded-md bg-black text-white py-2 px-4" onclick="removeInvitee(pId)">
        -
    </Button>
  </div>
</div>
</div>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!