admin管理员组

文章数量:1252714

Quick version: Why is Amplify's Grid class not translated to a

<div style="... display: grid" >

as expected?

Long version...

I started with the Amplify V2 Quickstart instructions here to clone the amplify-vite-react-template.

Then, I removed some of the pre-existing code and dropped in my grid:


  return (
    <main>
      <h1>My App</h1>
      <Grid
        templateColumns="1fr 1fr"
        columnGap={"2em"}
        rowGap="1.5em"
      >
        <View column="1">
          <TextField label="First name:"></TextField>
        </View>
        <View column="2">
          <TextField label="Last name:"></TextField>
        </View>
        <View column="1" columnSpan={2}>
          <TextField width="100%" label="Email:"></TextField>
        </View>
      </Grid>
      <br />
      <div>
        

本文标签: reactjsAmplify V2 with awsamplify 6 Grid not translated correctly into HTMLStack Overflow