> For the complete documentation index, see [llms.txt](https://ra-libs.gitbook.io/react/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ra-libs.gitbook.io/react/docs/components/inputs/maskedtextinput.md).

# MaskedTextInput

MaskedTextInput component uses [react-imask](https://www.npmjs.com/package/react-imask) to render the text input with mask pattern

### Usage

```tsx
import { MaskedTextInput } from '@ra-libs/react';

<MaskedTextInput source="CPF" mask="000.000.000-00" fullWidth validate={[required()]} />;
```

### Props

| Prop | Required | Type   | Default | Description       |
| ---- | -------- | ------ | ------- | ----------------- |
| mask | true     | string | -       | the mask pattern. |

> It accepts react-admin TextInput props
