Skip to content

[FR]: Toast的title和content支持ReactNode #3382

@faimi

Description

@faimi

这个功能解决了什么问题?

content可能需要两行,所以会采取ontent: <div style={{ whiteSpace: 'break-spaces' }}>{第一行\n第二行}这种写法;此外,content本身就支持ReactNode,我写了ReactNode不会报错,只会展示空白,并不合理。
title如果需要给他加样式,也需要支持ReactNode

你期望的组件设计是怎样的?

<Text></Text>组件换成<div></div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions