question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to set the Height property to the outlined select component

See original GitHub issue

Hi,

I would like to change the default height of the Outlined Select component.

I can override default classes, but this way seems like an unstable.

What is the best way to achieve it?

Best regards!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

95reactions
tralawarcommented, Dec 28, 2019

I had an issue where I wanted my select to match the same height as size='small' text fields. I was able to fix this by adding margin='dense' to the <FormControl margin='dense'/> component FROM THIS image

TO THIS image

27reactions
roggeocommented, May 5, 2020

Thank you Tralawar. For me it’s working very well <FormControl variant="outlined" size="small">

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set the Height property to the outlined select component
Hi, I would like to change the default height of the Outlined Select component. I can override default classes, but this way seems...
Read more >
javascript - MUI Select - Change Select size - Stack Overflow
Try using size="small" attribute on FormControl ... It's the same as if you define a Select and FormControl but with better integration.
Read more >
Select API - Material UI - MUI
Name Type Default autoWidth bool false children node classes object
Read more >
height - CSS: Cascading Style Sheets - MDN Web Docs
The height CSS property specifies the height of an element. By default, the property defines the height of the content area.
Read more >
How to Set MUI TextField Height and Width: The 3 Best Ways
Perhaps the simplest way to set TextField width and height is to use only the sx prop. First, set width at the root...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found