Skip to content
Klarhimmel UI

Download, mobile app

Download, mobile app previewDownload, mobile app preview

Install

npx shadcn add https://ui.klarhimmel.com/r/download-apps.json
DetailsAbout, usage, props and more

Get the mobile app: a headline, one to three store buttons (each a link with the store named in text), a QR code with a caption for people on a desktop, and an optional…

Import

Import

import Block from '@/components/klarhimmel/blocks/download-apps';
Also called
  • download/apps
About
Get the mobile app: a headline, one to three store buttons (each a link with the store named in text), a QR code with a caption for people on a desktop, and an optional line about requirements.
Category
Get the app: store links with a QR code, or desktop builds with system requirements. New project? Set it up once: /get-started/installation.

Notes

When to use it

A mobile app section with store buttons and a QR code for people reading on a computer. For desktop installers with versions and sizes, use download-desktop.

Writing for it

- Store links are our own buttons with a small line and the store name, never the stores' artwork. Take one to three of them. - The QR image is a Media slot, and its alt text must say what it opens. The caption beside it tells a desktop reader what to do with it. - The note under the buttons holds 120 characters and is the place for the lowest supported system versions.

Watch out for

The QR code is never the only way in, so keep at least one working store link. Check that the QR points at a page that works on both phone systems.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import DownloadApps from '@/components/klarhimmel/blocks/download-apps';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <DownloadApps props={{
          "eyebrow": "Name the topic",
          "title": "Say where the app goes with them",
          "description": "Say in one or two sentences what the app lets them do and what it costs.",
          "stores": [
            {
              "small": "Get it from the",
              "store": "First store",
              "href": "#app-store"
            },
            {
              "small": "Available on",
              "store": "Second store",
              "href": "#google-play"
            }
          ],
          "qr": {
            "image": {
              "src": "/pictures/photo-spa1.avif",
              "alt": "A treatment room with a massage table by a window"
            },
            "caption": "Say to scan the code with a phone"
          },
          "note": "Say which system versions it needs."
        }} />
      </BlockSurface>
    </Theme>
  );
}

Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

PropTypeDefaultDescription
eyebrowstring'Name the topic'Text, up to 60 characters.
titlestring'Say where the app goes with them'Text, up to 120 characters.
descriptionstring'Say in one or two sentences what th…'Text, up to 300 characters.
stores{ small, store, href }[]2 itemsList of 1 to 3. Each item: small, store, href.
qr{ image, caption }{…}Fields: image, caption.
notestring'Say which system versions it needs.'Text, up to 120 characters. Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.