Not giving a prop a value should consider it as true in HTML
See original GitHub issueI kept trying to add the prop ‘raised’ and ‘colored’ to an mdl-button but with no luck:
<mdl-button raised colored v-mdl-ripple-effect>
<i class="material-icons">content_paste</i>
</mdl-button>
all i get is a basic button with ripple effect
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
How to pass props without value to component - Stack Overflow
Just the attribute name. The value is implicitly the empty string. In the following example, the disabled attribute is given with the empty ......
Read more >React Props Cheatsheet: 10 Patterns You Should Know
There is no need to write that a prop is equal to true. Instead, you can just include the prop value, and it...
Read more >JSX In Depth - React
Props Default to “True” In general, we don't recommend not passing a value for a prop, because it can be confused with the...
Read more >Decide on the desired behavior when a boolean value is ...
I believe hidden shouldn't use true/false either but rather just attribute exists vs not exists. Yep. hidden is a boolean property, assigning ...
Read more ><input>: The Input (Form Input) element - HTML
The value given to the list attribute should be the id of a <datalist> element located in the same document. The <datalist> provides...
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 Free
Top 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

You can now update to the v0.3 and write
raisedwithout passing a valuenice 👍