Tab, Shift-TabEnter, Spacedisabledaria property:aria property to pass supported attributes to the native control inside the shadow DOM. Prefer a visible
slotted label for the accessible name. Use aria-label when the label is hidden or missing, and aria-description for
extra context that should not replace the name. Do not use aria-label to replace a different visible label (WCAG 2.5.3).aria-labellabel for most cases.aria-descriptionrole="switch"aria-checked="BOOLEAN"role="status"loading prop is set, the component announces the loading state (start and finish).aria prop (aria-label, aria-description).hide-label only when the label text remains in the slot for screen readers.aria-* attributes directly on the component host.<p-switch aria-label="Dark mode" aria-description="Toggles the color theme">
Dark mode
</p-switch><p-switch aria="{'aria-label': 'Dark mode', 'aria-description': 'Toggles the color theme'}">
Dark mode
</p-switch><p-switch name="notifications"></p-switch><p-switch name="notifications">
Email notifications for order updates
</p-switch><p-switch name="notifications" hide-label="true"></p-switch><p-switch name="notifications" hide-label="true">
Email notifications for order updates
</p-switch>