---
schema_version: "1"
id: 86d401e64106b4323832efdc46191316f5faa6d24777b680d940238020cfe2c8
title: Using Labels
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/labels/labels-intro.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/labels-intro.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c8b43fdcdf7f80d826744a9d15ac1e3307efb117d16ce0bd900686935f0ed857
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Using Labels

Labels are text that presents information about the user interface, such as in the header (1), input fields (2), or buttons (3). While you can specify labels by providing text values in component markup, you can also access labels stored outside your code using the `$Label` global value provider in expression syntax.

![Labels display information about the user interface.](https://developer.salesforce.com/media/aura-platform/labels.png)

This section discusses how to use the `$Label` global value provider in these contexts:

-   The `label` attribute in input components
-   The `format()` expression function for dynamically populating placeholder values in labels

-   **[Using Custom Labels](https://developer.salesforce.com/docs/platform/aura-platform/guide/labels-value-provider-platform.md)**  


    Custom labels are custom text values that can be translated into any language that Salesforce supports. To access custom labels in Aura components, use the `$Label` global value provider.

-   **[Input Component Labels](https://developer.salesforce.com/docs/platform/aura-platform/guide/labels-overview.md)**  


    A label describes the purpose of an input component. To set a label on an input component, use the `label` attribute.

-   **[Dynamically Populating Label Parameters](https://developer.salesforce.com/docs/platform/aura-platform/guide/labels-parameters.md)**  


    Output and update labels using the `format()` expression function.

-   **[Getting Labels in JavaScript](https://developer.salesforce.com/docs/platform/aura-platform/guide/labels-dynamic.md)**  


    You can retrieve labels in JavaScript code. Your code performs optimally if the labels are statically defined and sent to the client when the component is loaded.

-   **[Getting Labels in Apex](https://developer.salesforce.com/docs/platform/aura-platform/guide/labels-apex.md)**  


    You can retrieve label values in Apex code and set them on your component using JavaScript.

-   **[Setting Label Values via a Parent Attribute](https://developer.salesforce.com/docs/platform/aura-platform/guide/labels-parentcmp.md)**  


    Setting label values via a parent attribute is useful if you want control over labels in child components.


