Skip to content
Overlays

Dialog

client48 kB
@stellaria/nebula-webDialogProps

Preview

Props

14
PropTypeDefault

aria-label

string

—

children

ReactNode

—

className

string

—

closeLabel

string"Close"

corner

DialogCorner"bottom-end"

live

"polite" | "assertive""polite"

offset

number24

onClose

(() => void)

—

opened

required
boolean

—

title

ReactNode

—

width

string | number340

withCloseButton

booleantrue

withinPortal

booleantrue

zIndex

number300

Slot props

2

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

PropTypeDefault

headProps

The header row. Only rendered with `title` or with `withCloseButton`; the button also needs `onClose`, so without it the row renders empty.

BoxSlotProps

—

titleProps

The title. Without `title` the header leaves an empty gap so the close button does not shift.

TextSlotProps

—

Also accepts

On top of its own props, this component forwards these groups.

Style props · 123