Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA radio choice that reveals the one field it needs (email or phone), moves no focus, announces the change, and drops the hidden field's value and error from the submitted data. Use this when an answer decides which follow-up field exists.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
One answer makes another field relevant or required (contact by email or by phone, "other: please specify").
Do not use it when: When the hidden data is still needed after the person changes their mind. Keep it in state instead of dropping it.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Description |
|---|---|---|
onSubmit | ({ method, email? , phone? }) => void | Promise<void> | Receives only the field that belongs to the chosen method. |
aria-controls) that holds the revealed field.The pattern ships with a Testing Library test (conditional-contact-fields.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.