Empty

Designer doc
Empty component.

Example

Basic Usage
By default, the height is fit the content. You can specify height prop as a shorthand for style prop height.
View code
Adding Buttons
You can add buttons or any other contents by rendering inside (i.e. children prop).
View code
Image Size
By default the image size is 168px, you can customize it using imageSize prop as a shorthand for imageProps={{ style: { width, height } } }.
View code
Available Illustrations
If you need higher resolution images, you can add suffix @2x or @3x.
For example: import img404 from '@seaweb/coral/images/404@3x.png'.
View code
Custom Image
View code

API

Empty
Prop nameTypeDefaultDescription
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
imagePropsImgHTMLAttributes<HTMLImageElement> & { as?: any; ref?: HTMLImageElement; }
imageSizeHeight<string | number>
titleReactNode
titlePropsHTMLAttributes<HTMLDivElement> & { as?: any; ref?: HTMLDivElement; }
    Example
    Example
    Basic Usage
    Basic Usage
    Adding Buttons
    Adding Buttons
    Image Size
    Image Size
    Available Illustrations
    Available Illustrations
    Custom Image
    Custom Image
    API
    API
    Empty
    Empty
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