Balloon

Designer doc
Balloon component is a popup commonly used for confirmation or acknowledging additional information.

Example

Basic Usage
View code
Controlled
View code

Accessibility

By default, popup opens when reference is clicked or by pressing arrow key down.
When popup opens, the content will be autofocused. When closed, the popup returns the focus back to the reference. Tabbing through items in the popup is guarded such that the start and end return the focus back to the reference.
Pressing Escape will close the popup, pressing any printable character will return the focus to the reference. This is to handle the case where reference is an input text.
View code

References

API

Balloon
Prop nameTypeDefaultDescription
activeboolean
arrowArrowProps
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
containerHTMLElementconfigs.getPortalContainer('Balloon', 'container')
contentReactNode
focusOnOpenbooleantrue
immediateboolean
initialActiveboolean
offset[number, number][0, 2]
onActiveChange(active: boolean) => void
onComponentBlur() => void
Callback function that will be called when the whole Balloon component is blurred.
placementPlacementstop
popperOptionsPopperPopperOptions
Options for Popper.js instance
popperUpdateKeystring
shouldKeyDownReturn(e: KeyboardEvent<HTMLDivElement>) => boolean
springConfigPartial<AnimationConfig>{ tension: 720, mass: 0.5 }
BalloonButton
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
colorTypeColorTypes
Set color based on theme. If color is specified, that prop is used instead of this.
disabledboolean
Equivalent to button's disabled property.
keyboardClickKeysstring[]
leftIconReactNode
Element before the label. Equivalent to element on the label with some margin.
loadingboolean
onBlurFocusEventHandler<HTMLDivElement>
onClickMouseEventHandler<HTMLDivElement>
onKeyDownKeyboardEventHandler<HTMLDivElement>
onKeyUpKeyboardEventHandler<HTMLDivElement>
onMouseDownMouseEventHandler<HTMLDivElement>
onMouseLeaveMouseEventHandler<HTMLDivElement>
onMouseUpMouseEventHandler<HTMLDivElement>
onReleaseEventHandler<SyntheticEvent<HTMLDivElement, Event>>
Callback that's triggered after click i.e. mouseup and keyup of enter or space.
onTouchEndTouchEventHandler<HTMLDivElement>
onTouchStartTouchEventHandler<HTMLDivElement>
radiusnumber
rightIconReactNode
Element after the label. Equivalent to element on the label with some margin.
sizeButtonSizes
variantButtonVariants
Prefers naming it as variant because type is a known button html property.
BalloonClose
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
colorTypeColorTypesneuFore2nd
Set color based on theme. If color is specified, that prop is used instead of this.
disabledboolean
Equivalent to button's disabled property.
keyboardClickKeysstring[]
loadingboolean
onBlurFocusEventHandler<HTMLDivElement>
onClickMouseEventHandler<HTMLDivElement>
onKeyDownKeyboardEventHandler<HTMLDivElement>
onKeyUpKeyboardEventHandler<HTMLDivElement>
onMouseDownMouseEventHandler<HTMLDivElement>
onMouseLeaveMouseEventHandler<HTMLDivElement>
onMouseUpMouseEventHandler<HTMLDivElement>
onReleaseEventHandler<SyntheticEvent<HTMLDivElement, Event>>
Callback that's triggered after click i.e. mouseup and keyup of enter or space.
onTouchEndTouchEventHandler<HTMLDivElement>
onTouchStartTouchEventHandler<HTMLDivElement>
radiusstring
sizeIconButtonSizes
tooltipReactNode
tooltipPropsOmit<TooltipProps, "title" | "children">
variantIconButtonVariants
BalloonContent
Prop nameTypeDefaultDescription
actionsReactNode
actionsPropsDivProps
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
closeElementReactNode
closePropsDivProps
contentPropsDivProps
titleReactNode
titlePropsDivProps
    Example
    Example
    Basic Usage
    Basic Usage
    Controlled
    Controlled
    Accessibility
    Accessibility
    References
    References
    API
    API
    Balloon
    Balloon
    BalloonButton
    BalloonButton
    BalloonClose
    BalloonClose
    BalloonContent
    BalloonContent
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.

Copyright © 2018-2025 Sea Labs