AutoFocus

AutoFocus manages focus on focusable element on load.


import { AutoFocusModule } from 'primeng/autofocus';

AutoFocus is applied to any focusable input element with the pAutoFocus directive.


<input type="text" pInputText [pAutoFocus]="true" placeholder="Automatically focused" />

Figma UI Kit
The official Figma UI Kit for Prime UI libraries, the essential resource for designing with PrimeOne components.
November Sale 2025
Limited coupons for PrimeStore's biggest sale. Claim yours before they're gone!