Skip to content
Klarhimmel UI

Products, satellite

Products, satellite previewProducts, satellite preview

Install

npx shadcn add @klarhimmel/products-satellite
DetailsAbout, usage, props and more

A centred heading, then one square picture in the middle flanked by a stack of item cards on each side (icon, optional badge, name, line and price), with two actions…

Import

Import

import Block from '@/components/klarhimmel/blocks/products-satellite';
Also called
  • products/satellite
About
A centred heading, then one square picture in the middle flanked by a stack of item cards on each side (icon, optional badge, name, line and price), with two actions centred below.
Category
Things for sale as cards, rows or one featured item, each with a name, a price and its own action. New project? Set it up once: /get-started/installation.

Notes

When to use it

Pick it to show one hero product picture with its variants or add-ons orbiting it, two or three cards on each side. For a lead picture beside plain captions use gallery-featured; for a row of equal feature cards without a central picture use features-grid.

Writing for it

- The title holds 120 characters and the lead 240; the picture is square and sits in the middle. - Each side takes one to three cards: an icon, an optional badge of 24, a name of 50, a line of 100 and a price of 16 with a period of 30. - Two actions sit centred below; the second is optional.

Watch out for

Keep both sides to the same number of cards or the picture floats off centre against the taller stack. On a phone the left cards come first, then the picture, then the right cards, so order the cards to read well top to bottom.

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 ProductsSatellite from '@/components/klarhimmel/blocks/products-satellite';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ProductsSatellite props={{
          "eyebrow": "Section name",
          "title": "Say what the range offers",
          "description": "Say in one line what the visitor can choose from.",
          "media": {
            "src": "/pictures/photo-salon2.avif",
            "alt": "A salon interior in black and white with chairs and mirrors"
          },
          "left": [
            {
              "icon": "box",
              "badge": "Label",
              "name": "Name the item",
              "description": "Describe it in one short line.",
              "price": "00",
              "period": "billing period"
            }
          ],
          "right": [
            {
              "icon": "star",
              "badge": "Label",
              "name": "Name the item",
              "description": "Describe it in one short line.",
              "price": "00",
              "period": "billing period"
            }
          ],
          "primary": {
            "label": "Main action",
            "href": "#start"
          },
          "secondary": {
            "label": "Second action",
            "href": "#contact"
          }
        }} />
      </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'Section name'Text, up to 60 characters.
titlestring'Say what the range offers'Text, up to 120 characters.
descriptionstring'Say in one line what the visitor ca…'Text, up to 240 characters.
mediaMedia{…}See the type.
left{ icon, badge, name, description, price, period }[]2 itemsList of 1 to 3. Each item: icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge'), badge, name, description, price, period.
right{ icon, badge, name, description, price, period }[]2 itemsList of 1 to 3. Each item: icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge'), badge, name, description, price, period.
primaryLink{…}See the type.
secondaryLink{…}Optional; empty is not rendered.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.