Skip to content

five-on-it / apps/client/src/ui/kit/Dialog / DialogProps

Interface: DialogProps ​

Defined in: apps/client/src/ui/kit/Dialog.tsx:19

Props of Dialog.

Properties ​

actions? ​

optional actions?: ReactNode

Defined in: apps/client/src/ui/kit/Dialog.tsx:29

Its buttons, at its foot.


children? ​

optional children?: ReactNode

Defined in: apps/client/src/ui/kit/Dialog.tsx:30


icon? ​

optional icon?: "check" | "up" | "clock" | "external" | "search" | "down" | "close" | "reset" | "bolt" | "alert" | "play" | "chat" | "stop" | "back" | "info" | "coin" | "list" | "user" | "eye" | "plus" | "trash" | "send" | "sparkle" | "shield" | "infinity" | "edit" | "publish" | "gauge" | "layers" | "chevron" | "logout" | "globe"

Defined in: apps/client/src/ui/kit/Dialog.tsx:26

An icon by the title (a warning for a danger).


id? ​

optional id?: string

Defined in: apps/client/src/ui/kit/Dialog.tsx:20


onClose ​

onClose: () => void

Defined in: apps/client/src/ui/kit/Dialog.tsx:23

Closed by Escape, a click on the backdrop or a button: the dialog says no.

Returns ​

void


open ​

open: boolean

Defined in: apps/client/src/ui/kit/Dialog.tsx:21


title ​

title: ReactNode

Defined in: apps/client/src/ui/kit/Dialog.tsx:24


tone? ​

optional tone?: "danger" | "neutral"

Defined in: apps/client/src/ui/kit/Dialog.tsx:27