---
id: fast-components.palette.get
title: Palette.get() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-components](./fast-components.md) &gt; [Palette](./fast-components.palette.md) &gt; [get](./fast-components.palette.get.md)

## Palette.get() method

Gets a swatch by index. Index is clamped to the limits of the palette so a Swatch will always be returned.

<b>Signature:</b>

```typescript
get(index: number): T;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  index | number |  |

<b>Returns:</b>

T
