Skip to content

ashish-sharma-sf/salesforce-lwc-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Lightning Web Components (LWC) Public Library

Welcome to the LWC Public Library — a curated collection of reusable, open-source Lightning Web Components (LWCs) built for Salesforce developers. This project helps you accelerate UI development with clean, modular, and highly customizable components, ready to drop into any Salesforce Lightning app.


🚀 Project Overview

This repository contains Lightning Web Components that follow:

  • Salesforce LWC best practices
  • SLDS-based responsive design
  • Reusability via @api properties
  • Accessibility where applicable

You can use these LWCs in:

  • Lightning App Builder (Record/Home/App pages)
  • Experience Cloud Sites
  • Aura or custom LWC apps
  • Managed packages or internal tooling

📦 Components Included

✅ 1. Data Tree Component

Display and interact with hierarchical data (like folder structures, role hierarchies, or custom object trees) using lightning-tree-grid.

  • Expandable/collapsible nodes
  • Checkbox support for multi-select
  • URL or icon-based nodes
  • Custom node rendering
  • Keyboard accessible

🔗 Demo Component: demoDataTree


✅ 2. recordListCard Component

A flexible card-based LWC that displays a list of Salesforce records using lightning-datatable. Ideal for custom related lists, admin tools, or dashboards.

  • Card layout with SLDS styling
  • Custom header icon and label
  • Optional action buttons (lightning-button)
  • Row-level actions in lightning-datatable
  • Built-in refresh & reset column options
  • @api controlled visibility and layout

🔗 Demo Component: recordListCardDemo


🔧 Installation & Usage

Clone this repository or download the components you want, then deploy them to your Salesforce org using Salesforce CLI or your preferred deployment tools.