# MaskType

> Represents literal string values for the SVG mask-type attribute.

[API reference](/docs/api/index.md) › [HTML SVG](/docs/extensions/html-svg/reference/index.md) › [Values](/docs/extensions/html-svg/reference/values/index.md) › MaskType

| enum | `UIAwesome\Html\Svg\Values\MaskType` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Values/MaskType.php`](https://github.com/ui-awesome/html-svg/blob/main/src/Values/MaskType.php#L14) |

Represents literal string values for the SVG `mask-type` attribute.

Provides the keyword values used by the `mask-type` attribute.

See also: [`Mask::maskType()`](/docs/extensions/html-svg/reference/mask/index.md#method-maskType).

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-ALPHA"></span>`ALPHA` | `'alpha'` | `alpha` - Uses the alpha channel of the mask content. |
| <span id="case-LUMINANCE"></span>`LUMINANCE` | `'luminance'` | `luminance` - Uses the luminance of the mask content. |