Result

Designer doc
Result component helps user to display customizable placeholder for empty state.

Example

Basic Usage
View code
Image sizes
Image size is defaulted to 144px. You can use the imageSize prop to customize the Image size to your requirement
View code
Maximum width
Title, descriptions and actions by default have a maximum width of 480px. You can override this with the maxWidth prop. The example below has a maximum width of 288px.
View code
Container height
By default the height will fit the content. You can specify height prop to adjust the offset too - in most cases for full page result you can set it to 50vh.
View code
Offset top
Aside from height prop, you can use the offsetTop prop to adjust the margin top, with respect to the parent container.
The below example has an offset percentage of 20%.
View code
Optional components
title, description and actions props are optional.
View code
View code
Available Illustrations
View code
Using icons as images
View code

API

Result
Prop nameTypeDefaultDescription
actionPropsHTMLAttributes<HTMLDivElement> & { as?: any; ref?: HTMLDivElement; }
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
descriptionReactNode
descriptionPropsHTMLAttributes<HTMLParagraphElement> & { as?: any; ref?: HTMLParagraphElement; }
heightHeight<string | number>
imageReactNode | NextImgProps
imagePropsImgHTMLAttributes<HTMLImageElement> & { as?: any; ref?: HTMLImageElement; }
imageSizeHeight<string | number>144
Will not applied if image is a ReactNode
maxWidthMaxWidth<string | number>480
offsetTopMarginTop<string | number>
titleReactNode
titlePropsHTMLAttributes<HTMLDivElement> & { as?: any; ref?: HTMLDivElement; }
    Example
    Example
    Basic Usage
    Basic Usage
    Image sizes
    Image sizes
    Maximum width
    Maximum width
    Container height
    Container height
    Offset top
    Offset top
    Optional components
    Optional components
    Available Illustrations
    Available Illustrations
    Using icons as images
    Using icons as images
    API
    API
    Result
    Result
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