Ability to specify placeholder for text inputs and selects
See original GitHub issueSome times it is nice to be able to specify a placeholder text for input control that are different from the label (e.g. a short explanatory text). I know we already have the hint
prop, but a placeholder fills a slightly different purpose. It is also part of the HTML spec.
Vue-material already have this. Have a look at the second example to see what I mean: https://vuematerial.github.io/#/components/input
What do you think?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
placeholder - CSS: Cascading Style Sheets - MDN Web Docs
The ::placeholder CSS pseudo-element represents the placeholder text in an or element.
Read more >How do I make a placeholder for a 'select' box? - Stack Overflow
All you have to do is create a simple list with few data attributes. The code automatically turns the list into a selectable...
Read more >Learn the Examples of HTML Input Placeholder - eduCBA
HTML input placeholder work as a hint to a given element which helps to identify the required value of the given input field....
Read more >How to make a placeholder for a 'select' box? - GeeksforGeeks
There are many ways to create the placeholder for a 'select' box. Example 1: html.
Read more >::placeholder | CSS-Tricks - CSS-Tricks
:placeholder-shown is for selecting the input itself when it's placeholder text is being shown. As opposed to ::placeholder which styles the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mfferreira I think maybe I did not explain myself clear. I am talking about a new
placeholder
prop in addition to the currentlabel
prop. As I said, there are situations when it is preferable to have a placeholder that is different from the label. Did you look at the example from vue-material?This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord