demo · v133
Conditional UI feature gate
Use getClientCapabilities() to decide between three sign-in UIs: conditional-mediation (passkeys inline in the autofill drop-down), a passkey-only modal flow, or password-fallback. The branch chosen for this browser is highlighted live.
This browser doesn't expose
getClientCapabilities. Chrome 133+ required.probing capabilities…
branch A — conditional UI
if conditional mediation supported, attach the listener so passkeys appear inline in the username field's autofill chip.branch B — modal passkey
otherwise, show a button that triggers a modalnavigator.credentials.get() on click.