Grid
Grid、Stack 和 Inline:只使用间距刻度中间距的布局。
1
2
3
4
5
6
<Grid columns={3} gap={12} className="w-full">
{[1, 2, 3, 4, 5, 6].map((i) => (
<Box key={i}>{i}</Box>
))}
</Grid>import { Grid, Stack, Inline } from "@logicplanes/kaeso-ui";属性
align"start" | "end" | "baseline" | "stretch" | "center" = center条目在单元格内的对齐方式。
asElementType渲染所用的元素或组件,例如
section或ul。columns4 | 1 | 2 | 3 | 6 = 2列数。
gap0 | 24 | 20 | 32 | 40 | 4 | 2 | 6 | 8 | 12 | 16 | 48 | 64 = 16条目之间的间距,以间距刻度上的像素计。