function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JasonGJasonG 

Why is the label attribute required on the lightning:input?

Why is the label attribute required on the lightning:input? Is there a way to just use the placeholder instead of a label? What if I want the label to be the size of  of a header? Just curious why this label is required when It can really affect design?
Raj VakatiRaj Vakati
You can use placeholder as shown below. As per the specification, the label is required. You can write your own CSS to hide the label and show the only placeholder  
 
<lightning:input name="input3" label="Text field with a placeholder" placeholder="type here..."/>