Skip to main content
PROYECTOVIVIANA

Dialog

The props declared for Dialog, generated from the types @proyecto-viviana/ui ships.

Import

import { Dialog } from "@proyecto-viviana/ui";

Props

Props for Dialog in @proyecto-viviana/ui
PropTypeDefaultDescription
size'S' | 'M' | 'L' | 'XL' | 'sm' | 'md' | 'lg' | 'fullscreen'—The size of the dialog.
isDismissiblefalse | true—Whether the dialog can be dismissed by clicking outside, Escape, or the close button.
isDismissablefalse | true—Alias for isDismissible, retained for older Solid Spectrum examples.
isKeyboardDismissDisabledfalse | true—Whether pressing Escape closes the dialog.
stylesStyleString | (() => StyleString | undefined)—Spectrum-defined generated classes.
classstring—Additional CSS class name.
UNSAFE_classNamestring—Additional CSS class name matching Spectrum's escape hatch prop.
UNSAFE_styleJSX.CSSProperties—Additional inline style matching Spectrum's escape hatch prop.
titlestring—The legacy title prop; prefer `<Heading slot="title">` for S2 parity.
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((props: DialogRenderProps) => JSX.Element)—The children content.
onClose() => void—Callback when dialog should close.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
idstring—The element's unique identifier. solidaria
aria-describedbystring—Identifies the element (or elements) that describes the object. solidaria
aria-detailsstring—Identifies the element (or elements) that provide a detailed, extended description for the object. solidaria
aria-labelstring—Defines a string value that labels the current element. solidaria
aria-labelledbystring—Identifies the element (or elements) that labels the current element. solidaria
role'dialog' | 'alertdialog''dialog'The role of the dialog element. solidaria

Declared in packages/viviana-ui/src/dialog/Dialog.tsx.

CloseButton props

Props for CloseButton in @proyecto-viviana/ui
PropTypeDefaultDescription
size'S' | 'M' | 'L' | 'XL''M'The size of the CloseButton.
staticColor'white' | 'black' | 'auto'—The static color style to apply. Useful when the Button appears over a color background.
isDisabledfalse | true—Whether the button is disabled.
onPress() => void—Handler called when the button is pressed.
stylesStyleString | (() => StyleString | undefined)—Spectrum-defined generated classes.
UNSAFE_classNamestring—Not yet documented
UNSAFE_styleJSX.CSSProperties—Not yet documented
aria-labelstring—Not yet documented

Declared in packages/viviana-ui/src/dialog/Dialog.tsx.

CustomDialog props

Props for CustomDialog in @proyecto-viviana/ui
PropTypeDefaultDescription
size'S' | 'M' | 'L' | 'fullscreen' | 'fullscreenTakeover'—Not yet documented
isDismissiblefalse | true—Not yet documented
isDismissablefalse | true—Not yet documented
padding'default' | 'none'—Not yet documented
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((props: DialogRenderProps) => JSX.Element)—The children content.
classstring—Additional CSS class name.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
titlestring—The legacy title prop; prefer `<Heading slot="title">` for S2 parity.
idstring—The element's unique identifier. solidaria
onClose() => void—Callback when dialog should close.
aria-describedbystring—Identifies the element (or elements) that describes the object. solidaria
aria-detailsstring—Identifies the element (or elements) that provide a detailed, extended description for the object. solidaria
aria-labelstring—Defines a string value that labels the current element. solidaria
aria-labelledbystring—Identifies the element (or elements) that labels the current element. solidaria
role'dialog' | 'alertdialog''dialog'The role of the dialog element. solidaria
stylesStyleString | (() => StyleString | undefined)—Spectrum-defined generated classes.
UNSAFE_classNamestring—Additional CSS class name matching Spectrum's escape hatch prop.
UNSAFE_styleJSX.CSSProperties—Additional inline style matching Spectrum's escape hatch prop.
isKeyboardDismissDisabledfalse | true—Whether pressing Escape closes the dialog.

Declared in packages/viviana-ui/src/dialog/Dialog.tsx.

DialogFooter props

Props for DialogFooter in @proyecto-viviana/ui
PropTypeDefaultDescription
children*JSX.Element—Footer content, typically buttons.
classstring—Additional CSS class.

Declared in packages/viviana-ui/src/dialog/Dialog.tsx.

DialogRender props

Props for DialogRender in @proyecto-viviana/ui
PropTypeDefaultDescription
close*() => void—Not yet documented

Declared in packages/viviana-ui/src/dialog/Dialog.tsx.

DialogTrigger props

Props for DialogTrigger in @proyecto-viviana/ui
PropTypeDefaultDescription
triggernumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—Button to trigger the dialog.
content(close: () => void) => JSX.Element—The dialog content - receives close function.
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—Composition API matching React Spectrum/React Aria DialogTrigger.
isOpenfalse | true—Whether the dialog is controlled.
defaultOpenfalse | true—Whether the dialog opens by default.
onOpenChange(isOpen: boolean) => void—Callback when open state changes.
isDismissiblefalse | true—Whether clicking outside the dialog closes it.
isDismissablefalse | true—Alias for isDismissible, retained for older Solid Spectrum examples.
isKeyboardDismissDisabledfalse | true—Whether pressing Escape closes the dialog.

Declared in packages/viviana-ui/src/dialog/Dialog.tsx.

FullscreenDialog props

Props for FullscreenDialog in @proyecto-viviana/ui
PropTypeDefaultDescription
variant'fullscreen' | 'fullscreenTakeover'—Not yet documented
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((props: DialogRenderProps) => JSX.Element)—The children content.
classstring—Additional CSS class name.
slotstring | false—A slot name for the component. HTML `slot` may be `false` to omit. solidaria-components
titlestring—The legacy title prop; prefer `<Heading slot="title">` for S2 parity.
idstring—The element's unique identifier. solidaria
onClose() => void—Callback when dialog should close.
aria-describedbystring—Identifies the element (or elements) that describes the object. solidaria
aria-detailsstring—Identifies the element (or elements) that provide a detailed, extended description for the object. solidaria
aria-labelstring—Defines a string value that labels the current element. solidaria
aria-labelledbystring—Identifies the element (or elements) that labels the current element. solidaria
role'dialog' | 'alertdialog''dialog'The role of the dialog element. solidaria
stylesStyleString | (() => StyleString | undefined)—Spectrum-defined generated classes.
UNSAFE_classNamestring—Additional CSS class name matching Spectrum's escape hatch prop.
UNSAFE_styleJSX.CSSProperties—Additional inline style matching Spectrum's escape hatch prop.
isKeyboardDismissDisabledfalse | true—Whether pressing Escape closes the dialog.

Declared in packages/viviana-ui/src/dialog/Dialog.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.