Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA list of phone numbers with a type for each and exactly one primary: choosing a new primary un-sets the old one, removing the primary promotes the next, and at least one row is kept. Use this when a list has a single "default" item.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
A repeated record needs exactly one marked as primary or default (phone, address, payment method, email).
Do not use it when: When several rows may be marked, use checkboxes instead of a primary radio.
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 |
|---|---|---|
value, onChange | PhoneEntry[] | Optional; without them the list keeps its own state. { number, type, primary }. |
normalizePrimary(list) is exported for the server side.
name), so Arrow keys move between the rows' radios and the checked state is exposed. The invariant (exactly one primary) is enforced in code, not left to the person.The pattern ships with a Testing Library test (contact-phone-list.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.