Skip to main content

Modal


Example

Props

NameTypeDefault ValueRequiredDescription
titlestringYes
primaryActionOmit<Props, "size" | "kind" | "hierarchy">No
secondaryActionOmit<Props, "size" | "kind" | "hierarchy">No
onClose() => voidYes
closeButtonLabelstringNo
isDestructivebooleanNo

@deprecated use kind='destructive' instead

loadingMessagestringNo
errorstringNo
errorBannerWidth"content" | "fill"No
size"small" | "medium" | "large" | "wide"No
kind"normal" | "warning" | "destructive"No
autoFocusbooleanNo