函数: B50Poster()
ts
function B50Poster(props): Element;定义于: packages/draw/src/components/poster.tsx:46
Beta
海报 JSX 布局,供直接组装 satori 树的高级用法。
常规出图请使用 Draw.poster。
参数
| 参数 | 类型 | 描述 |
|---|---|---|
props | { data: PosterData; footerLeft?: string; footerRight?: string; header?: string; } | 完整海报数据与可选页眉、页脚 |
props.data | PosterData | 完整海报数据 |
props.footerLeft? | string | 左侧页脚文案 |
props.footerRight? | string | 右侧页脚文案 |
props.header? | string | 左上品牌页眉文案 |
返回
Element
satori 可渲染的 JSX 元素
示例
ts
import { createElement } from "react";
const element = createElement(B50Poster, {
data,
header: "my-app",
footerLeft: "my-app",
});备注
稳定性:高级布局 API。常规出图优先使用 Draw.poster。
