You need to sign in to do that
Don't have an account?
Alex Yhap
How do you use base lightning components in Visualforce page?
If I want to use a lightning component like a button (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_button.htm) how would I write the JS? I know you can do custom lighting components like below
How would you write the JS for a base lightning component?
$Lightning.use("c:SampleApp", function() { $Lightning.createComponent("c:sampleComponent", {label: ""}, "lightning", function(cmp) { // Do some stuff } ); });
How would you write the JS for a base lightning component?
Install SLDS package., you can place lightning button in your vf page like this, find more details in
https://lightningdesignsystem.com/components/buttons/