---
schema_version: "1"
id: 7ea359ab89b43365b868f1579ff95a69a0daf19f8980680645365386cc8c9b9e
title: getName()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-component-getname.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-component-getname.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 477755159bd57b70b9d95c3a7789e87366900424ae6488c36d8f8beee5e91bd0
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# getName()

Returns the component’s code-compatible camel case name, such as `'lightningButton'`.

## Signature

`getName()`

## Returns

**Type: `String`** The component name.

