
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
Prop name | Type | Default | Description |
---|---|---|---|
active | boolean | ||
arrow | ArrowProps | ||
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
container | HTMLElement | configs.getPortalContainer('Balloon', 'container') | |
content | ReactNode | ||
focusOnOpen | boolean | true | |
immediate | boolean | ||
initialActive | boolean | ||
offset | [number, number] | [0, 2] | |
onActiveChange | (active: boolean) => void | ||
onComponentBlur | () => void | Callback function that will be called when the whole Balloon component is blurred. | |
placement | Placements | top | |
popperOptions | PopperPopperOptions | Options for Popper.js instance | |
popperUpdateKey | string | ||
shouldKeyDownReturn | (e: KeyboardEvent<HTMLDivElement>) => boolean | ||
springConfig | Partial<AnimationConfig> | { tension: 720, mass: 0.5 } |
Prop name | Type | Default | Description |
---|---|---|---|
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
colorType | ColorTypes | Set color based on theme. If color is specified, that prop is used instead of this. | |
disabled | boolean | Equivalent to button's disabled property. | |
keyboardClickKeys | string[] | ||
leftIcon | ReactNode | Element before the label. Equivalent to element on the label with some margin. | |
loading | boolean | ||
onBlur | FocusEventHandler<HTMLDivElement> | ||
onClick | MouseEventHandler<HTMLDivElement> | ||
onKeyDown | KeyboardEventHandler<HTMLDivElement> | ||
onKeyUp | KeyboardEventHandler<HTMLDivElement> | ||
onMouseDown | MouseEventHandler<HTMLDivElement> | ||
onMouseLeave | MouseEventHandler<HTMLDivElement> | ||
onMouseUp | MouseEventHandler<HTMLDivElement> | ||
onRelease | EventHandler<SyntheticEvent<HTMLDivElement, Event>> | Callback that's triggered after click i.e. mouseup and keyup of enter or space. | |
onTouchEnd | TouchEventHandler<HTMLDivElement> | ||
onTouchStart | TouchEventHandler<HTMLDivElement> | ||
radius | number | ||
rightIcon | ReactNode | Element after the label. Equivalent to element on the label with some margin. | |
size | ButtonSizes | ||
variant | ButtonVariants | Prefers naming it as variant because type is a known button html property. |
Prop name | Type | Default | Description |
---|---|---|---|
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
colorType | ColorTypes | neuFore2nd | Set color based on theme. If color is specified, that prop is used instead of this. |
disabled | boolean | Equivalent to button's disabled property. | |
keyboardClickKeys | string[] | ||
loading | boolean | ||
onBlur | FocusEventHandler<HTMLDivElement> | ||
onClick | MouseEventHandler<HTMLDivElement> | ||
onKeyDown | KeyboardEventHandler<HTMLDivElement> | ||
onKeyUp | KeyboardEventHandler<HTMLDivElement> | ||
onMouseDown | MouseEventHandler<HTMLDivElement> | ||
onMouseLeave | MouseEventHandler<HTMLDivElement> | ||
onMouseUp | MouseEventHandler<HTMLDivElement> | ||
onRelease | EventHandler<SyntheticEvent<HTMLDivElement, Event>> | Callback that's triggered after click i.e. mouseup and keyup of enter or space. | |
onTouchEnd | TouchEventHandler<HTMLDivElement> | ||
onTouchStart | TouchEventHandler<HTMLDivElement> | ||
radius | string | ||
size | IconButtonSizes | ||
tooltip | ReactNode | ||
tooltipProps | Omit<TooltipProps, "title" | "children"> | ||
variant | IconButtonVariants |
Prop name | Type | Default | Description |
---|---|---|---|
actions | ReactNode | ||
actionsProps | DivProps | ||
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
closeElement | ReactNode | ||
closeProps | DivProps | ||
contentProps | DivProps | ||
title | ReactNode | ||
titleProps | DivProps |
Copyright © 2018-2025 Sea Labs