Tuesday, August 16, 2022
No menu items!
spot_img
HomeSalesForceStyling LWC using Public Properties | Developer Quick Takes
spot_img

Styling LWC using Public Properties | Developer Quick Takes

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/62e4aecc718db9e9aefb7a9d0d8ede8d

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: https://www.facebook.com/salesforcedevs/
Twitter: https://www.twitter.com/salesforcedevs
LinkedIn: https://www.linkedin.com/showcase/salesforce-developers

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

RELATED ARTICLES

7 COMMENTS

- Advertisment -spot_img

Most Popular