Skip to content

Update mask input topic for React 19 #1575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: vnext
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions doc/en/components/inputs/mask-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ npm install igniteui-react

You will then need to import the `MaskInput`, its necessary CSS, and register its module, like so:
```tsx
import { IgrMaskInput, IgrMaskInputModule } from 'igniteui-react';
import { IgrMaskInput } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';
IgrMaskInputModule.register();
```
<!-- end: React -->

```tsx
<IgrMaskInput mask="00000">
<span slot="prefix">
<IgrIcon ref={this.iconLocationRef} name="location" collection="material"></IgrIcon>
<IgrIcon ref={iconLocationRef} name="location" collection="material"></IgrIcon>
</span>
<span slot="helper-text">ZIP Code</span>
</IgrMaskInput>
Expand Down Expand Up @@ -92,7 +91,7 @@ In the example below, we will apply a mask for a phone number with an extension
```tsx
<IgrMaskInput mask="(####) 00-00-00 Ext. 9999">
<span slot="prefix">
<IgrIcon ref={this.iconPhoneRef} name="phone" collection="material"></IgrIcon>
<IgrIcon ref={iconPhoneRef} name="phone" collection="material"></IgrIcon>
</span>
<span slot="helper-text">Phone number</span>
</IgrMaskInput>
Expand Down