Repository navigation
Remove line field group #6904
|
how to remove line this field group ?
|
Replies: 1 comment
|
That line isn't a separator added by 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>
If you'd rather keep Note the group ring needs to be a normal (outer) |

That line isn't a separator added by
UFieldGroup— it's each button's own ring. Theoutlineandsubtlevariants draw a 1px inset ring around the button (ring ring-inset ring-accentedforneutral), andUFieldGrouponly 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:
neutral+softgives the sameb…