Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

App Rating Download Footer Block for React

A footer for a grocery-list app with a star rating, the phone versions it supports, and two store links in the brand column, beside three groups of links.

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 footer for React with Base UI, for a product people install on a phone. Larderby’s brand column holds the wordmark, one sentence, a read-only Rating and two store links. The stars are foreground. The average and the count beside them are derived from a typed tally of ratings, and the stars draw the nearest half, which here is the same 4.5. Under that, one line names the phone versions the app supports. The first store link is a ShineButton, the second an outline Button, each with a generic device mark rather than a store logo. A nav labelled Footer holds three groups (Product, Lists, Company) of four links. A legal band carries the copyright and three policy links. The rails and the top rule come from the Guides spine, so the footer joins the block above it with one line, and nothing else rules the columns. On a phone the groups sit two per row, with the third wrapping under them. It’s built from Rating, ShineButton, Button, Guides and your theme’s tokens, with no JavaScript of its own.

FAQ

Where do the stars and the count come from?

From TALLY at the top of the file: a count of ratings at each star. The file adds them up. The average is GIVEN / TOTAL, shown to one decimal, and the stars draw the nearest half (DRAWN). With the counts shipped here both are 4.5, from 7,200 ratings. Replace the five counts and the text and the stars follow. The stars are readOnly inside an inert wrapper, so they are not a control; the sentence beside them is what a screen reader gets.

How do I point the buttons at the real listings?

Each button is a link with href="#". Put the listing URL on that anchor. The labels say “Download for iOS” and “Download for Android” and the icons are generic devices, because the icon set has no store logos. Keep a visible label if you swap the icon.

How do screen readers move through it?

The block is a footer element. Outside main, it is the page’s content-info landmark. The three groups sit in a nav labelled Footer, each a small h2 over a list. The rating is decorative; the line “4.5 out of 5 from 7,200 ratings” is the text. The policy links are a list named Legal. Every link and both buttons show the theme’s focus ring.

How does it fit on a phone?

The brand column comes first, with the rating, the version line and the two store links stacked full width below sm. The three groups then sit two per row, and the legal row stacks the copyright above the policy links. Nothing scrolls sideways at 320 pixels.

Where does the copyright year come from?

It is the current year, read when the footer renders, so it never goes stale. The block is a server component with no state, so on a server-rendered site the year is the server’s when the page was built or rendered.

  • Pro

    The classic link-column footer for an email API: a brand column with the wordmark, one sentence and four social links, four groups of links behind a split divider, and a legal band with the copyright and the policy links.

  • Pro

    A brand-first split footer for a design tool: a display wordmark, a tagline and the Shine Button on one half, three link columns and the legal row on the other.

  • Pro

    Social Icons Footer

    Slim and minimal

    A two-row footer: a wordmark and tagline beside five social icon buttons with tooltips, and a ruled band with the copyright and the policy links.

  • Pro

    A footer for a workflow tool whose call to action is the last cell of the link grid: a brand and three link groups beside a card in a card with a small flow drawing, a title, one line and a Shine Button.

  • Pro

    Launch Card Footer

    Social proof

    A footer with a raised launch card: an upvote toggle that really counts (1,248 to 1,249), a read-only star rating with its score and review count, and a Leave a review link, beside two link groups.

  • Pro

    QR Install Footer

    Calls to action

    A bike-share footer with a framed QR code for the install page, store links and two columns of ride links.