# Mask (@salmonui/inputs/masked-field)

> The Mask interface of @salmonui/inputs/masked-field.

Canonical: https://salmonui.dev/docs/reference/inputs/masked-field/Mask

```ts
import type { Mask } from '@salmonui/inputs/masked-field';
```

Entry index: https://salmonui.dev/docs/reference/inputs/masked-field (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/masked-field.md).

## Reference

Kind: interface

```ts
interface Mask {
    readonly slots: readonly MaskSlot[];
    readonly digitsOnly: boolean;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `slots` | `readonly slots: readonly MaskSlot[];` |  |  |
| `digitsOnly` | `readonly digitsOnly: boolean;` |  | True when every input slot accepts only digits (the input is then `dir="ltr"`). |
