---
schema_version: "1"
id: 76b1a2b98fb273ce0468ffc45c3d4887f12846fb04f59383f416e01fda7ed6f3
title: Using a Namespace in or from a Managed Package
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/namespaces/namespace-using-package.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/namespace-using-package.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: dfa369c10912d73271584b580a68fb1ba4210f3f8c89c3dab280602172eac470
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Using a Namespace in or from a Managed Package

Always use the complete namespace when referencing items from a managed package, or when creating code that you intend to distribute in your own managed packages.

Another component or application can reference a component by adding `<pkgNamespace:pkgComponent>` in its markup. For example, let’s look at a package that contains the `helloWorld` component in the docsample namespace. Another component can reference the component from the package by adding `<docsample:helloWorld />` in its markup.

**See Also**  


-   [Namespace Usage Examples and Reference](https://developer.salesforce.com/docs/platform/aura-platform/guide/namespace-using-reference.md)

