Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

App Download FAQ Block for Radix UI

A FAQ for a habit-tracking app: six questions in an accordion beside a download card in a card, where a Phone or Watch choice swaps a real QR code, the minimum OS and the store link.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

An app-download FAQ for React with Radix UI. The start column holds the title, one sentence and six questions in an accordion; the end column, behind a split divider, holds a download card in a card. A Phone or Watch choice in the card swaps a real QR code (it encodes the store address), the minimum OS, the file size, what it pairs with and the store link. On a phone the QR hides, since you're already on the device, and the card follows the questions under a rule with + marks. The rails and top rule come from the Guides spine, so the block lines up with its neighbours. It's built from Accordion, Qr Code, Segment Group, Data List, Shine Button and Guides, with CSS transitions for the entrance and your theme's tokens for every colour. For product pages and docs home pages that point visitors to an app.

FAQ

How do I change the devices, versions and links?

Edit DEVICES at the top of the file: each device has an id, a label, the needs and size lines, what it pairs with, and the href that both the QR code and the store link use. Point href at your store listing, or at a short link of yours that redirects by device. The questions are in QUESTIONS, and OPEN_QUESTION names the one that's open on load.

Is the QR code real?

Yes. It's the catalog's Qr Code, drawn from the device's href, and it changes when you switch device. It has dark modules on a white tile with a quiet border in every theme, because scanners need that contrast. Its aria-label says where it leads, and the store link beside it does the same job for anyone who can't scan.

How does the Phone and Watch choice work?

It's a Segment Group, so it behaves as one choice from a radio group: the arrow keys move and choose, and exactly one is always on. The card keeps its height when you switch, because every device has the same three lines. Rename the devices to match your own platforms: the labels here are neutral on purpose.

How does it work with a keyboard and a screen reader?

Each question is a button inside its own h3 under the section's h2, and the card's title is an h3 after them. Enter or Space opens and closes a question. The Up and Down arrows also move between questions.

Are the closed answers in the page's markup?

No: this Accordion renders an answer only when its question opens. If search engines must read every answer, add structured data built from the same QUESTIONS array.