Seed Bible extension API (v1.19.0) / seed-bible/components / DialogProps
Interface: DialogProps
Properties
children?
children?: ComponentChildren;className?
className?: string;closeLabel?
closeLabel?: string;dialogRef?
dialogRef?: Ref<HTMLDivElement>;dismissible?
dismissible?: boolean;Whether the user may close it right now (✕, Escape, or clicking outside). False while it is in the middle of something it shouldn't be left in. Defaults to true.
footer?
footer?: ComponentChildren;Rendered below the content, outside its scroll area: usually buttons.
initialFocusRef?
initialFocusRef?: {
current: HTMLElement | null;
};What gets focus on open; defaults to the dialog itself.
current
current: HTMLElement | null;label?
label?: string;Accessible name, for a dialog without a visible title.
onClose
onClose: () => void;Returns
void
portal?
portal?: boolean;Render into <body> so no ancestor stacking context can bury it.
showClose?
showClose?: boolean;Show the ✕ button. Defaults to true.
style?
style?: CSSProperties;title?
title?: ComponentChildren;Visible title, which also names the dialog for screen readers.