Skip to content
Discussion options

You must be logged in to vote

That line isn't a separator added by UFieldGroup — it's each button's own ring. The outline and subtle variants draw a 1px inset ring around the button (ring ring-inset ring-accented for neutral), and UFieldGroup only squares off the inner corners and overlaps the items by 1px (-space-x-px), so the ring is still visible where the two buttons meet.

To get a single control without the divider, use a variant without a ring and put the border on the group instead:

<UFieldGroup class="rounded-md ring ring-accented">
  <UButton color="neutral" variant="soft" label="Button" />
  <UButton color="neutral" variant="soft" icon="i-lucide-chevron-down" />
</UFieldGroup>

neutral + soft gives the same b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benjamincanac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants