Skip to content

Close Button

Last updated 11 Nov 2026

NbCloseButton is the one control that closes or dismisses something: a dialog, a side panel, a sheet, a toast, a banner. It is a ghost icon-only NbButton with the x icon, in the two sizes Carbon uses for the job.

Props ​

PropTypeDefaultDescription
labelstringcatalogueAccessible name and tooltip. Falls back to the catalogue's close
size'sm' | 'lg''sm'lg (48px) for dialogs, side panels and sheets, sm (32px) inline
disabledbooleanfalseNative disabled
tooltipPosition'top' | 'bottom' | 'left' | 'right''bottom'Where the tooltip opens

Events ​

EventPayloadFired when
clickMouseEventThe button is pressed

Exposed ​

MemberTypeDescription
focus()() => voidMoves focus onto the button, for a sheet that opens on it
el()() => HTMLElement | nullThe rendered <button>

Strings ​

KeyDefault
close'Close'
ts
import { provideNbStrings } from '@nubisco/ui'

provideNbStrings({ close: 'Schließen' }, app)