Skip to content
r.

lwc-recipes

trailheadapps/lwc-recipes · Public GitHub repository

A collection of easy-to-digest code examples for Lightning Web Components on Salesforce Platform

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

lwc-recipes live demo screenshot
Captured from the live demo · 2026-11-03

About this project

Author-written excerpt from the project README.

A collection of easy-to-digest code examples for Lightning Web Components. Each recipe demonstrates how to code a specific task in the fewest lines of code possible while following best practices. A "View Source" link takes you directly to the code on GitHub. From "Hello World" to data access and third-party libraries, there's a recipe for that!

This sample application is designed to run on Salesforce Platform. If you want to experience Lightning Web Components on any platform, please visit and try out our Lightning Web Components sample application LWC Recipes OSS.

Requirements and intended audience

A collection of easy-to-digest code examples for Lightning Web Components. Each recipe demonstrates how to code a specific task in the fewest lines of code possible while following best practices. A "View Source" link takes you directly to the code on GitHub. From "Hello World" to data access and third-party libraries, there's a recipe for that!

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-15. Source: https://github.com/trailheadapps/lwc-recipes/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-11-01. A published release has not been recorded. These dates do not guarantee ongoing maintenance.

Technologies
JavaScript
Licence
CC0-1.0. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-20. This does not test every feature.

Browse related categories