1

I just tried using LWC on my local, but not able to use <lightning-input />. Is it available for open source? Is there any way to bring prebuilt lightning web components with lightning namespace to local?

2

Currently no - none of the platform base component are available for off platform usage. Salesforce is targeting to open Source them in late July (#safeharbor) but their api / shape may also be slightly different than the known one due to missing Salesforce Service - will we see

For the 2nd Question - the only way as of today to use existing base components outside the platform would be via Lightning Out which is a different approach. I would wait those couple of months to see how its evolve with the LWC Framework

  • Or you can just write them by yourself, some of them are pretty easy to reproduce/reverse engineer (like lightning-input, button etc) – user1974566 Jun 16 at 11:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.