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.

Ability to specify placeholder for text inputs and selects

See original GitHub issue

Some 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sindrepmcommented, Apr 25, 2017

@mfferreira I think maybe I did not explain myself clear. I am talking about a new placeholder prop in addition to the current label 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?

0reactions
lock[bot]commented, Apr 17, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

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