Styling LWC using Public Properties | Developer Quick Takes

Опубликовано: 05 Октябрь 2024
на канале: Salesforce Developers
277,003
1.1k

In this Quick Take, you will learn how to style Lightning Web Components using the values of public properties. Instead of using JavaScript to manipulate the styles, we will instead assign JavaScript property values to CSS Custom Properties. We will use the same approach to style base components using public properties as well.

Check out this GitHub Gist for the code that we used in this demo: https://gist.github.com/adityanaag3/6...

00:00 Intro
00:26 Use Case Walkthrough
02:20 About CSS Custom Properties
06:52 Styling Hooks

Connect with Salesforce Developers:
Website: https://www.developer.salesforce.com/
Facebook:   / salesforcedevs  
Twitter:   / salesforcedevs  
LinkedIn:   / salesforce-developers  

Track: BeatFort - Rampant Sunrise
Music provided by Ninety9Lives
Stream / Free Download: 99l.tv/rampantsunriseYU