yuanqing / create-figma-plugin

:battery: The comprehensive toolkit for developing plugins and widgets for Figma and FigJam
https://yuanqing.github.io/create-figma-plugin/
MIT License
902 stars 85 forks source link

Columns component does not support align-items property #233

Open artivilla opened 3 weeks ago

artivilla commented 3 weeks ago

I was trying to achieve aligning items vertically so the <Text>Units</Text> was aligned center to the <SegmentedControl>.

Landed up writing it manually but would prefer if we can support this prop as figma components likely use this option in several places. I could have missed something in the docs as well ¯_(ツ)_/¯

      <div className="flex items-center">
        <div class="flex-1">
          <Text>Units</Text>
        </div>
        <SegmentedControl
          options={[{ value: "mm" }, { value: "cm" }, { value: "in" }]}
          value={unit}
          onChange={handleUnitChange}
        />
      </div>

image