menu
Channels
# All channels
view-forward
# General
view-forward
# Help me
view-forward
# Requests
view-forward
Team

Centering TextInput within Pane/Card

April 28, 2020 at 9:07pm

Centering TextInput within Pane/Card

April 28, 2020 at 9:07pm
Hey, I am having a hard time doing something that is usually pretty simple. I am trying to center a TextInput component with a pane/card. Can anyone help me with this issue?
Thanks

April 29, 2020 at 1:26am
Horizontally or vertically?
  • reply
  • like
Can you share the code snippet? (Or codesandbox?) There's a codesandbox template for evergreen if you want to use this:
  • reply
  • like
both. similar to the search input on google.com
  • reply
  • like
  • reply
  • like
Ah, just add display="flex" justifyContent="center"
like-fill
1
  • reply
  • like
got it.... thanks man. worked great!
  • reply
  • like