Tab, Shift-Tabaria property:aria property to pass supported attributes to the native <input> inside the shadow DOM, for example when
you implement a combobox-style pattern (search field + suggestion list).rolecombobox for an autocomplete pattern alongside a separate listbox).aria-autocompletenone, inline, list, both).aria-activedescendantaria-controlsaria-expandedaria-haspopuplistbox, dialog).aria-labellabel for most cases.aria-descriptionaria={{ role: 'combobox', 'aria-expanded': isOpen, 'aria-haspopup': 'listbox' }}.aria values you pass. On the native search input, aria-describedby,
aria-invalid, aria-disabled, and aria-readonly are always set by the component and take precedence over the
same keys if they were supplied in aria.aria-describedby="IDREF"aria-invalid="true"state is error.aria-disabled="true"disabled or loading is active.aria-readonly="true"readOnly is active.role="status", role="alert"message and state or loading change, the status message region is exposed for announcements.aria-hidden="true"disabled state. Disabled elements are no longer focusable and may be missed by screen
reader users. They can also confuse sighted users if the reason they are disabled is not made clear.aria property so the input exposes the expected semantics
supported by this component, for example:role: 'combobox'aria-controls referring to the controlled region. A string id does not resolve across the shadow boundary; pass the
element (or a list of elements) instead:
aria={{ 'aria-controls': listElement, 'aria-activedescendant': activeElement }}. That sets ariaControlsElements
and ariaActiveDescendantElement on the native <input>aria-activedescendant referring to the highlighted suggestion, again as an element when that suggestion is outside
the shadow treearia-expanded reflecting open/closed statearia-haspopup indicating the presence of a popup (e.g. listbox)aria-autocomplete as required by your patternlabel and pass combobox-related ARIA through the aria prop when needed.aria-* attributes directly on the component host.hide-label without an accessible name.aria-controls or aria-activedescendant cannot name an element across the shadow boundary. Pass the
element instead (aria={{ 'aria-controls': listElement, 'aria-activedescendant': activeElement }}) and the component
sets ariaControlsElements and ariaActiveDescendantElement on the native <input>. aria-owns is not forwarded.aria-ownsaria-controlsaria-activedescendant<p-input-search name="search" placeholder="Search"></p-input-search><p-input-search name="search" label="Search vehicles" description="Search by model name or VIN."></p-input-search><p-input-search name="search" label="Search vehicles" role="combobox" aria-expanded="false" aria-haspopup="listbox"></p-input-search><p-input-search name="search" label="Search vehicles" aria="{'role': 'combobox', 'aria-expanded': 'false', 'aria-haspopup': 'listbox'}"></p-input-search><p-input-search name="search" hide-label="true"></p-input-search><p-input-search name="search" hide-label="true" label="Search vehicles"></p-input-search><p-input-search name="search" label="Search vehicles" aria-invalid="true" message="Invalid"></p-input-search><p-input-search name="search" label="Search vehicles" state="error" message="Enter at least 3 characters to search."></p-input-search>