Skip to content

Input Group

Last updated 11 Nov 2026

NbInputGroup joins a field and the buttons that act on it into one control: an email with its Invite button, a link with Copy, a quantity with Add. Every box in the row is the same height, from the scale fields and buttons share, and the edges where they meet are joined.

vue
<template>
  <NbInputGroup label="Invite a member" :error="emailError">
    <NbTextInput v-model="email" type="email" autocomplete="email" />
    <NbButton variant="primary" @click="invite">Invite</NbButton>
  </NbInputGroup>
</template>

When to use it ​

Use a group when the button only makes sense together with the field beside it: it submits that one value, copies it, or adds it to a list. A button that acts on the whole form (Save, Cancel) belongs in the form's footer, not in a group.

The group owns the label and the message ​

Give label, helper, error and warning to the group, not to the fields inside it. The label sits above the row and the message below it, so the boxes in the row line up with each other rather than with whichever child happens to have a label. The fields inside take the group's error or warning state, and point at its message with aria-describedby.

Size ​

size sets the height of every control in the row, from the scale fields and buttons share: xs 24, sm 32, md 40, lg 48. The fields inside take it over their own size, and a button is held to the same height. Pass the slot's size to your buttons too, so an icon-only button's icon is sized for it.

A date and its button ​

A date picker joins a group like any other field: the group's height, state and message, and the calendar button inside it sized to match.

Works with ​

NbTextInput, NbNumberInput, NbSelect, NbSearch and NbDatePicker take the group's size, state and message, and render no label or message of their own, in the default and the fluid variant alike. A range picker's end field, which then has no visible label, is named by its end-label, else its end-placeholder, else "End date". A label, helper, error or warning passed to the field itself is ignored, with a warning in development that names it: pass it to the group. NbButton in any variant. Put one field in a group: two fields side by side are two controls, and belong in an NbGrid.