-
-
Save kevinberonilla/fb8f26f30931898b0dff to your computer and use it in GitHub Desktop.
SLDS Form Element Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="assets/styles/salesforce-lightning-design-system-vf.css"> | |
</head> | |
<body> | |
<div class="slds"> | |
<form class="slds-form--inline"> | |
<div class="slds-form-element"> | |
<label class="slds-form-element__label" for="name">Name</label> | |
<div class="slds-form-element__control"> | |
<input id="name" class="slds-input" type="text" placeholder="John Smith" /> | |
</div> | |
</div> | |
<div class="slds-form-element"> | |
<label class="slds-form-element__label" for="selectSample1">Select Label</label> | |
<div class="slds-form-element__control"> | |
<div class="slds-select_container"> | |
<select id="selectSample1" class="slds-select"> | |
<option>Option One</option> | |
<option>Option Two</option> | |
<option>Option Three</option> | |
</select> | |
</div> | |
</div> | |
</div> | |
<button class="slds-button slds-button--brand" type="button">Send</button> | |
</form> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment