Skip to content

A Lightning Web Component to render the US States as a picklist

Notifications You must be signed in to change notification settings

MeanPug/lwc-us-states-picklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Lightning Web Component to Render US States as a Picklist

Just a dead simple LWC for a dead simple use case 🐶

Usage

Simply download or clone this repo and copy the picklistUsStates folder to your apps' lwc directory then include as normal.

Example

  1. Render the US States picklist in a form
<div class="slds-form-element slds-p-vertical_medium">        
  <div class="slds-form-element__control">
    <c-picklist-us-states
        label="US States"
        placeholder="Select a State"
        onvalueselect={handleStateSelect}>
</c-picklist-us-states>
handleStateSelect(event) {
  const selectedState = event.detail.value;
  console.log(selectedState);
}

About

A Lightning Web Component to render the US States as a picklist

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published