Figure
与正文分开展示的图示或图片:居中放在底板上并带有图注,只有在无法缩小到合适宽度时才横向滚动。
<Figure label="Diagram: route of a request" caption="Route of a request" className="w-full">
<ThemeImage light="/demos/route.light.svg" dark="/demos/route.dark.svg" alt="Route of a request: app, Kaeso, provider" width={364} height={49} />
</Figure>import { Figure } from "@logicplanes/kaeso-ui";属性
captionReactNode图片底部的几个字,说明它展示的内容,例如图表的标题。
childrenReactNode图示展示的内容,通常是一个 ThemeImage。
focusnumber = 0.5比所在栏更宽的图从哪里开始显示,以其宽度的比例表示:默认 0.5,即中间。
labelstring图示滚动区域的名称,供屏幕阅读器朗读;同一页面上的每个图示都应有各自的名称。
surface"well" | "plain" = well图片的背景:像代码块一样的平面底板,或者没有背景;图注位于一条细线下方。