# Gallery, featured

- **[Sections](/blocks/)**
- **[Gallery](/blocks/gallery/)**
- **Gallery, featured**

One large lead image beside a stacked column of two or three smaller ones, each with a caption. A guided look: start here, then these.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/gallery-featured
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/gallery-featured';
  ```

Also called

- gallery/featured

- **Category**: A grid of images with captions. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: One large lead image with two or three smaller ones stacked beside it, each with a caption. It guides the eye: look here first, then at these. For an even set of images use `gallery-grid`.
- **Writing for it**: - The featured caption allows 120 characters. Name the moment or place, because the lead image is the one people actually read about.
- Choose exactly two or three thumbs. With three, the last one fills the full row at medium widths, so put the strongest of the small images last.
- Write alt text for every image, since the captions are optional and an empty caption hides its line.
- **Watch out for**: The lead is cropped to 4 by 3 and the thumbs to 16 by 10, so a portrait photo will be cut hard at the top and bottom. Below the wide breakpoint the thumbs fall into a single row or two columns.

## Pairs well with

- **[Features, alternating](/blocks/features/alternating)**
- **[Call to action, over an image](/blocks/cta/media)**
- **[Contact, booking link](/blocks/contact/booking-link)**

## 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 GalleryFeatured from '@/components/klarhimmel/blocks/gallery-featured';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <GalleryFeatured props={{
          "eyebrow": "Name the topic",
          "title": "Say what to look at first",
          "description": "Say in one line what the pictures show and why it is worth a look.",
          "featured": {
            "media": {
              "src": "/pictures/photo-barber1.avif",
              "alt": "An empty barbershop with chairs and mirrors"
            },
            "caption": "Say what the main picture shows"
          },
          "thumbs": [
            {
              "media": {
                "src": "/pictures/photo-bike3.avif",
                "alt": "A bicycle in a workshop with tools on the wall behind"
              },
              "caption": "Say what this picture shows"
            },
            {
              "media": {
                "src": "/pictures/photo-book3.avif",
                "alt": "A wooden shelf of books"
              },
              "caption": "Name what this shows"
            },
            {
              "media": {
                "src": "/pictures/photo-brk1.avif",
                "alt": "A breakfast plate of fruit with orange juice"
              },
              "caption": "Name the subject"
            }
          ]
        }} />
      </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.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **featured**: Fields: media, caption.
- **thumbs**: List of 2 to 3. Each item: media, caption.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/gallery/feed-masonry)

[Next](/blocks/gallery/grid)
