Add comments to new render props

This commit is contained in:
Sergio Padrino 2024-05-10 13:05:13 +02:00
parent d3e8913885
commit b041f901be
2 changed files with 10 additions and 0 deletions

View file

@ -67,6 +67,11 @@ interface IDialogProps {
*/
readonly title?: string | JSX.Element
/**
* An optional element to render to the right of the dialog title.
* This can be used to render additional controls that don't belong to the
* heading element itself, but are still part of the header (visually).
*/
readonly renderHeaderAccessory?: () => JSX.Element
/**

View file

@ -19,6 +19,11 @@ interface IDialogHeaderProps {
/** Whether or not the header should show a close button */
readonly showCloseButton?: boolean
/**
* An optional element to render to the right of the dialog title.
* This can be used to render additional controls that don't belong to the
* heading element itself, but are still part of the header (visually).
*/
readonly renderAccessory?: () => JSX.Element
/**