# getDeviceIcon

Canonical: https://docs.shumoku.dev/en/library/api/getDeviceIcon
Language: en

@shumoku/core · 0.4.0 · function

# getDeviceIcon

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/icons/generated-icons.ts#L60)

Get SVG icon content for a device type

```
getDeviceIcon(type?: DeviceType): string | undefined
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `type` | `DeviceType` | No additional description. | `—` |

## Returns

```
string | undefined
```

[`libs/@shumoku/core/src/icons/generated-icons.ts:60`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/icons/generated-icons.ts#L60)
