Icon Tile
Payment Method Tile
A payment method tile: card, wallet and invoice as a true radiogroup with arrow-key navigation and an explicit double cue for the selected option.
What you can change
- label — the group's caption
- defaultMethod — the default method for the uncontrolled mode
- method and onMethodChange — for a controlled selection from the parent
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/icontile-015?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
Client component: it holds the selected method in useState and tells the controlled mode from the uncontrolled one by comparing method with undefined, so the file carries "use client". The group is built as a real role="radiogroup" with role="radio" on every tile: Tab enters the group once, and from there the arrows walk the options through a roving tabindex (tabIndex 0 on the selected one, -1 on the rest) — this is the native behaviour of <input type="radio">, implemented by hand. The selected option is marked by two cues at once — a border and a checkmark in the corner — because the fill colour alone does not read under a colour vision deficiency. On a narrow container the tiles fold into a single column and unfold back into a row. The palette has been moved to light-dark(): in the dark branch the tile border is lighter than its background. The method names and hints are exposed through the methodTitle and methodHint props with Russian defaults, and the group's surface is set by the background prop and is absent by default.
Tags
- icontile
- payment
- radiogroup
- selection
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…