Avatar
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.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
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.club/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…
How to use
<Icontile015 label="Payment method" defaultMethod="card" />A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Group caption
label· default: Payment method- Default method
defaultMethod· default: card- Background
background· default: theme colour
More in Avatar
FAQ
- How do I add Payment Method Tile with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Payment Method Tile depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Payment Method Tile?
- Adapt: label — the group's caption; defaultMethod — the default method for the uncontrolled mode; method and onMethodChange — for a controlled selection from the parent. Keep as installed: the local --vibeui-icontile-015-* palette — do not swap it for your theme tokens; role="radiogroup" with real role="radio" tiles and roving tabindex — focus enters the group once, then arrows take over; the ArrowLeft/ArrowRight/ArrowUp/ArrowDown handling in handleKeyDown: without it the group stops being keyboard-accessible.
- Is Payment Method Tile free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/icontile-015.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
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…