Input inputStyle="floating" vs inlinePlaceholder={true} #181
Labels
component: text field
This is the name of the generic UI component, not the React module!
package: styles
Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
What the difference between
inputStyle="floating"
andinlinePlaceholder={true}
?When I do
The looks the same
The difference is that
inlinePlaceholder={true}
leaves input placeholderinputStyle="floating" adds
<span class="mui-input-placeholder" data-reactid=".0.2.0.0.1.0.1.6.1">State</span>
but on focus just hide itSo the behaviour and looks the same
May leave one option remove inlinePlaceholder prop ?
Or it has some benefits ?
The text was updated successfully, but these errors were encountered: