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.

Props ​

PropTypeDefaultDescription
labelstring-The label above the row. It points at the first field in the group.
helperstring-Helper text below the row, when there is no error or warning
errorstring-Error below the row. The fields draw their error state.
warningstring-Warning below the row. The fields draw their warning state.
size'xs' | 'sm' | 'md' | 'lg''md'The height of every control in the row
disabledbooleanfalseDisables the fields. Buttons read the slot's disabled.
requiredbooleanfalseMarks the label as required
idstringautoThe first field's id, which the label points at

Slots ​

SlotPropsDescription
default{ size: string, disabled: boolean }One field and the buttons beside it

A button on each side ​

Order is up to you: a group squares whichever edges touch.

vue
<template>
  <NbInputGroup label="Quantity" size="sm">
    <template #default="{ size, disabled }">
      <NbButton variant="secondary" :size="size" :disabled="disabled">
        Reset
      </NbButton>
      <NbNumberInput v-model="quantity" :min="0" />
      <NbButton variant="primary" :size="size" :disabled="disabled">
        Add
      </NbButton>
    </template>
  </NbInputGroup>
</template>

How the fields join ​

A field draws its corners through the field.radius mixin (src/styles/logic/_field.scss), which reads --nb-field-radius-start and --nb-field-radius-end before the field's own radius. The group sets them to zero on the inner side of each child, so a field squares the right corners without knowing it is in a group. Build a custom field the same way and it joins a group too.