# `GSComponent initWithComponentName:`

*Initializer*

Creates a component that references a base glyph by name.

## Declaration

```swift
init(componentName: String)
```

```objc
- (instancetype) initWithComponentName:(NSString *) componentName;
```

```python
initWithComponentName_(componentName: str) -> GSComponent
```

## Parameters

- `componentName` — The name of the base glyph.

## Discussion

The base glyph is resolved in the font of the containing layer after the component is inserted into a layer.

