Skip to main content

Example

DialogList Props

{text:string, actions: Array<{label:string, onTrigger:() => void, icon?: Icon}>}
required
The text to display when the list is empty, and an optional array of actions to display when the user clicks the empty state.
React.ReactNode
required
The children should be a list of DialogList.Item components.

DialogList.Item Props

React.ReactNode
required
The text to display for the item.
Icon
required
The icon to display for the item.
() => void
A function that will be called if the user clicks the item.
string
The text to display for the action button for the item in the dialog footer. Required if onTrigger is provided.
React.ReactNode
The suffix to display for the item. Can be a Typography component or a StatusBadge component.