Build Custom Components
In addition to the Commerce App standard components, you can add custom components to your B2B or D2C store created with an LWR template. Custom Lightning web components (LWC) are easy to build, and they perform well in the web browser that hosts your B2B or D2C store created with an LWR template.
Build a Lightning web component by using HTML, JavaScript, and CSS. HTML provides the structure. JavaScript defines the core business logic, event handling, API calls to fetch page data, and related metadata. CSS provides the look, feel, and animation. Then deploy the component to Experience Builder with Commerce metadata. From start to finish, including deploying the component to your store, an SFDX project framework and related utilities assist you.
Your LWR-based B2B or D2C store has dozens of standard Lightning web components. Before building a custom component, review the already-built LWCs described in LWR Store Components or, to view all the components available in your store template, see View All Components.
To get started building a custom component, see Create an SFDX Project for the Custom Component. To accelerate the development process, you can also reference the Public Commerce LWR Library GitHub Repository.
For guidance on specific custom components, see these topics: