# mask

Builds a bidirectional Schema codec from literal text and named slots.

## Signatures

```ts
export declare function mask<const Parts extends ReadonlyArray<MaskPart>>(...parts: Parts): Schema.Codec<MaskValue<Parts>, string>;
```



## Examples

```ts
import { mask, slot } from "@typed/ui/Form"
import { Schema } from "effect"

const phone = mask("(", slot("area", Schema.String, { length: 3 }), ") ",
  slot("number", Schema.String, { length: 7 }))
```
