sci-components icon indicating copy to clipboard operation
sci-components copied to clipboard

Feature Request: DialogTitle to accept Title and SubTitle components

Open tihuan opened this issue 1 year ago • 0 comments

Context:

  1. Currently <DialogTitle /> doesn't allow modifying the <Title /> and <Subtitle /> it uses in rendering the component

Solution:

  1. Add TitleComponent and SubtitleComponent as new DialogTitle's props, so we can do:
const StyledDialogTitleTitle = styled(DialogTitleTitle)`
  // custom style
`

<DialogTitle title="my title" TitleComponent={StyledDialogTitleTitle} />
  1. While we're there, update title and subtitle to be ReactNode to reflect the actual capability

tihuan avatar Oct 25 '23 20:10 tihuan