sci-components
sci-components copied to clipboard
Feature Request: DialogTitle to accept Title and SubTitle components
Context:
- Currently
<DialogTitle />
doesn't allow modifying the<Title />
and<Subtitle />
it uses in rendering the component
Solution:
- Add
TitleComponent
andSubtitleComponent
as new DialogTitle's props, so we can do:
const StyledDialogTitleTitle = styled(DialogTitleTitle)`
// custom style
`
<DialogTitle title="my title" TitleComponent={StyledDialogTitleTitle} />
- While we're there, update
title
andsubtitle
to beReactNode
to reflect the actual capability