pydantic/FastUI

Support srcdoc attribute in iframe component.

Open

#150 创建于 2024年1月14日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Python (341 fork)github user discovery
help wanted

仓库指标

Star
 (8,970 star)
PR 合并指标
 (PR 指标待抓取)

描述

Do you think it would be reasonable to add srcdoc attribute support to the iframe component? This would enable embedding arbitrary html. The sandbox attribute might go along with this in order to enable scripts.

For context, I have been looking into doing some data visualisation in FastUI but this could also be useful for embedding reports, for example from MultiQC.

# Use it in FastUI like:
c.Iframe(srcdoc='<p>FastUI is neat</p>', src='https://pydantic.dev', width='100%', height=400),

贡献者指南