The p-select-wrapper component is a styling wrapper for the native HTML <select> form element. To improve
accessibility on devices with touch support, it defaults to the native user interface behaviour.
A label is a caption which informs the user what information a particular form field is asking for. The
p-select-wrapper component can be used with or without a label but it's recommended to keep the label visible for
better accessibility whenever possible. When used without a label, it's best practice to provide a descriptive label
text for screen readers.
prev
next
Open in Stackblitz
<!doctype html>
<htmllang="en"class="auto"><head><title></title></head><bodyclass="bg-base"><p-select-wrapperlabel="Some label"><selectname="some-name"><optionvalue="a"> Option A
</option><optionvalue="b"> Option B
</option><optionvalue="c"> Option C
</option><optionvalue="d"> Option D
</option><optionvalue="e"> Option E
</option><optionvalue="f"> Option F
</option></select></p-select-wrapper><script></script></body></html>