# `GSComponent.componentName`

*Instance Property*

The name of the referenced base glyph.

## Declaration

```swift
var componentName: String? { get set }
```

```objc
@property (nonatomic, strong) NSString * componentName;
```

[See also `componentName` in the Python API](https://docu.glyphsapp.com/#GSComponent.componentName)

```python
pyobjc_instanceMethods.componentName() -> str
pyobjc_instanceMethods.setComponentName_(componentName: str)
```

## Discussion

The name is resolved in the font of the containing layer.

## See Also

### Base Glyph

- [`GSComponent.component`](/Core/GlyphsCore/GSComponent/component) — The base glyph resolved from [`GSComponent.componentName`](/Core/GlyphsCore/GSComponent/componentName) in the font of the containing layer.
- [`GSComponent updateComponentGlyph`](/Core/GlyphsCore/GSComponent/updateComponentGlyph) — Resolves the base glyph and updates the reference when the glyph was renamed.
- [`GSComponent updateComponentGlyphDontNotify`](/Core/GlyphsCore/GSComponent/updateComponentGlyphDontNotify) — Resolves the base glyph without registering a change to the component.
- [`GSComponent updateComponentGlyphFast`](/Core/GlyphsCore/GSComponent/updateComponentGlyphFast) — Resolves the base glyph without undo or change notifications.

