EllipsisTooltip

Designer doc
Ellipsis Tooltip will help user to automatically apply ellipsis to when its too long and display the original text in Tooltip.

Example

Basic Usage
When content inside tooltip overflows, content will show as ellipsis, when user hover on the content, full content will show in the tooltip
View code
MaxRows
maxRows prop is available to control the maxRows of the content
View code
Multiple Elements
When multiple multi-line elements need to be passed in, use BaseEllipsisTooltip and EllipsisOverflow to customise the maxRows for each child element.
View code
Relevant components

API

BaseEllipsisTooltip
Prop nameTypeDefaultDescription
activeboolean
arrowArrowProps
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
closeDelaynumber
containerHTMLElement
containerPropsInnerProps
immediateboolean
initialActiveboolean
initialImmediateboolean
offset[number, number]
onActiveChange(active: boolean) => void
onImmediateChange(immediate: boolean) => void
onOverflowChange(overflow: boolean) => void
openDelaynumber
overflowboolean
placement"left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end"
popperOptionsPopperPopperOptions
Options for Popper.js instance
popperUpdateKeystring
renderChild(child: any, handlers: any, ariaAttrs: any) => ReactNode
springConfigPartial<AnimationConfig>
titleReactNode
titleContainerPropsHTMLAttributes<HTMLDivElement>
variantTooltipVariantsdark
EllipsisOverflow
Prop nameTypeDefaultDescription
contentPropsInnerProps
maxRowsnumber1
EllipsisTooltip
Prop nameTypeDefaultDescription
activeboolean
arrowArrowProps
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
closeDelaynumber
containerHTMLElement
containerPropsInnerProps
contentPropsInnerProps
immediateboolean
initialActiveboolean
initialImmediateboolean
maxRowsnumber1
offset[number, number]
onActiveChange(active: boolean) => void
onImmediateChange(immediate: boolean) => void
onOverflowChange(overflow: boolean) => void
openDelaynumber
overflowboolean
placement"left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end"
popperOptionsPopperPopperOptions
Options for Popper.js instance
popperUpdateKeystring
renderChild(child: any, handlers: any, ariaAttrs: any) => ReactNode
springConfigPartial<AnimationConfig>
titleReactNode
titleContainerPropsHTMLAttributes<HTMLDivElement>
variantTooltipVariants
    Example
    Example
    Basic Usage
    Basic Usage
    MaxRows
    MaxRows
    Multiple Elements
    Multiple Elements
    Relevant components
    Relevant components
    API
    API
    BaseEllipsisTooltip
    BaseEllipsisTooltip
    EllipsisOverflow
    EllipsisOverflow
    EllipsisTooltip
    EllipsisTooltip
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