Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Columns component does not support align-items property #233

Open
artivilla opened this issue Jun 28, 2024 · 0 comments
Open

Columns component does not support align-items property #233

artivilla opened this issue Jun 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@artivilla
Copy link

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

@yuanqing yuanqing added the enhancement New feature or request label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants