---
schema_version: "1"
id: b4deaf86a8170cca57d9c36a020866837edf6d7e3f08686d39e1804fada2dab7
title: apex:includeLightning
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/components/pages-compref-includelightning.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-compref-includelightning.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3d56a9be994d6f013458460ebda4c5afcd9d8a3c54b82fef1d74f77f36d36cc5
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# apex:includeLightning

Includes the Lightning Components for Visualforce JavaScript library, lightning.out.js, from the correct Salesforce domain.

**note:** The Lightning Components for Visualforce JavaScript library loads from the org that the Visualforce page is in, so your Lightning Out app must exist in the same org as the Visualforce page.

## Attributes

|Attribute Name|Attribute Type|Description|Required?|API Version|Access|
|--------------|--------------|-----------|---------|-----------|------|
|`id`|String|An identifier that allows the component to be referenced by other components in the page.| |14.0|global|
|`rendered`|Boolean|A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true.| |14.0|global|

**See Also**  


-   [Render Lightning Runtime for Flows in a Visualforce Page](https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/flows/pages-flows-lightningruntime.md)

