可下载资源
在合适的背景上呈现图像,并提供下载操作。
背景材质
使用于 the brand page.
用法与接口
DemoAsset 会渲染完整托盘:标题栏包含 title 和 description,展示区放置图像,图注包含格式徽标和采用 ui-button 样式的下载链接。surface="light" 或 "dark" 会直接设置展示区的明暗模式,因此图像不需要额外的面板;默认的 "transparent" 使用棋盘格背景。
<DemoAsset title="Master CSS mark" description="Original SVG artwork." src="/images/logo.svg" alt="Master CSS gold mark" width={216.6} height={120} surface="dark"/>文件本身保持不变,只有预览大小受图片固有尺寸限制。