用法
导入{ __experimentalGrid作为Grid, __将文本作为文本进行实验, }来自“@wordpress/components”; 函数Example(){ 返回( <网格列={3}> <Text>代码</Text> <Text>是</Text> <文本>诗歌 </网格> ); }
道具
align:CSS['alignItems']
必需:否
对齐:网格对齐
必需:否
columnGap:CSSProperties[“gridColumnGap”]
必需:否
列:数字
必需:否 默认值: 2
间隙:数量
必需:否 违约: 三
isInline:布尔值
必需:否
justify:CSS[“justify内容”]
必需:否
rowGap:CSSProperties['gridRowGap']
必需:否
行:数字
必需:否
模板列:CSS['gridTemplateColumns']
必需:否
templateRows:CSS['gridTemplateRows']
必需:否