Skip to content
Overlays

Modal

client48.5 kB
@stellaria/nebula-webModalProps

Preview

Props

20
PropTypeDefault

aria-label

string

blurred

booleanfalse

bodyClassName

string

centered

booleantrue

children

required
ReactNode

className

string

closeLabel

string"Close"

closeOnClickOutside

booleantrue

closeOnEscape

booleantrue

drawer

boolean | ModalSide

footer

ReactNode

fullScreen

booleanfalse

onClose

required
() => void

opened

required
boolean

padding

"sm" | "md" | "lg" | "none""lg"

radius

"sm" | "md" | "lg" | "none"

size

SizeValue"md"

subtitle

ReactNode

title

ReactNode

withCloseButton

booleantrue

Slot props

6

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

PropTypeDefault

bodyProps

The body. Its padding is governed by `padding`; the slot composes with it, it does not override it.

BoxSlotProps

footerProps

The footer, when there is a `footer`.

BoxSlotProps

headerProps

The header row: heading on the left, close button on the right.

BoxSlotProps

headingProps

Title and subtitle column, inside the header.

BoxSlotProps

subtitleProps

The subtitle, when there is one.

TextSlotProps

titleProps

The title. It spreads AFTER the aria props, so the consumer wins.

TextSlotProps

Also accepts

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

Style props · 127