Feat/customizable login UI - #148
Merged
Merged
Conversation
…ta, header/footer and renderConnector
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
…iew and ConnectorButton for improved connection status handling
…oginFlow for improved connection status handling
…lowConnector type
invisiblemask
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes https://github.com/IQIndustries/issues/issues/5147 when this PR merged
What
Makes the
Logincomponent's UI customizable per project while keeping the default look 100% unchanged for existing consumers, and adds a headless hook for apps that want to own the entire login UI.1.
Logincustomization props (all optional)variant—"page"(default, current layout) or"card"(renders only the card, so apps can place it in their own modal)classNames— per-slot class overrides across 27 named slots (card,connectorButton,connectorLabel,signButton, …), merged over the defaults withtailwind-mergeso consumer classes win conflictsconnectorMeta— override label/description/icon per connector (Injected,WalletConnect,Web3Auth)header/footer— ReactNode slots replacing the default heading block / rendering below the wallet listrenderConnector— render-prop escape hatch for full control of each wallet row2. Headless
useLoginFlow()hookPackages everything
Loginuses internally — connectors with resolved metadata, connect actions and pending/error state,isConnected/address, and the sign-token step (token,signToken,signing,signError,logout,disableAuth). Apps (inside or outside the IQ ecosystem) can build a fully custom login screen with zero library markup. Must be used insideIqLoginProvider.Backward compatibility
<Login />with no props renders exactly as before — default class strings were extracted verbatim and verified character-for-character, plus side-by-side browser screenshot comparison against the previous release.LoginProps,LoginSlot,ConnectorMeta,ConnectorRow,LoginVariant,UseLoginFlowReturn, …) exported from@everipedia/iq-login/client.