KeyFilter feature restricts user input based on a regular expression.
import { InputText } from 'primereact/inputtext';
<script src="https://unpkg.com/primereact/core/core.min.js"></script>
KeyFilter property is integrated in input components such as InputText using the keyfilter property. The value of the filter can either a built-in regular expression or a custom one. Following input only accepts integers.
<InputText keyfilter="int" />
Commonly used cases have their own built-in shortcuts.
A custom filter is enabled by binding a regular expression, an example that blocks special characters would be;
<InputText keyfilter={/^[^#<>*!]+$/}/>
This section is under development. After the necessary tests and improvements are made, it will be shared with the users as soon as possible.
None.
Built-in component themes created by the PrimeReact Theme Designer.
Premium themes are only available exclusively for PrimeReact Theme Designer subscribers and therefore not included in PrimeReact core.
Beautifully crafted premium create-react-app application templates by the PrimeTek design team.