EmptyModule
@stellaria/nebula-webEmptyModulePropsPreview
Props
10| Prop | Type | Default |
|---|---|---|
action | ReactNode | — |
className | string | — |
description | ReactNode | — |
footer | ReactNode | — |
icon | ReactNode | — |
illustration | ReactNode | — |
secondaryAction | ReactNode | — |
size | "sm" | "md" | "lg" | "md" |
surface | EmptyModuleSurface | "dashed" |
title required | ReactNode | — |
Slot props
6Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
actionsProps The band that joins `action` and `secondaryAction`. It lands INSIDE the `EmptyState` action row, it does not replace it, and it does not exist without at least one of the two. | BoxSlotProps | — |
descriptionProps The description, forwarded to the `EmptyState`. Only rendered with `description`. | TextSlotProps | — |
footerProps The module footer, outside the `EmptyState`. Only rendered with `footer`. | BoxSlotProps | — |
iconProps The glyph, forwarded to the `EmptyState`. Only rendered with `icon`. | BoxSlotProps | — |
illustrationProps The illustration, which belongs to the module and goes before the `EmptyState`. Only with `illustration`; it is `aria-hidden` and its size comes from `size`. | BoxSlotProps | — |
titleProps The title, forwarded to the slot of the `EmptyState` the module mounts inside. | TextSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.