Skip to content
Domain-Specific

EmptyModule

client48 kB
@stellaria/nebula-webEmptyModuleProps

Preview

Props

10
PropTypeDefault

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

6

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

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.

Style props · 127