Elements Dialog
Back to Elements

Dialog

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

Dialog.Close

Modal dialog overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Dialog.Content

Modal dialog overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
portalProps
children Snippet
showCloseButton boolean true
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Dialog.Description

Modal dialog overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Dialog.Footer

Modal dialog overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Dialog.Header

Modal dialog overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Dialog.Overlay

Modal dialog overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Dialog.Title

Modal dialog overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Dialog.Trigger

Modal dialog overlay.

Prop Type Default Description
ref bind: HTMLElement | null null
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.