Skip to main content
Version: 1.x

@microsoft/fast-components > Palette > get

Palette.get() method

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

Signature:
get(index: number): T;

Parameters

ParameterTypeDescription
indexnumber
Returns:

T