# Feature 2 - Split feature row with image and dual actions

> A two-column block with one column for media and the other for a heading, supporting paragraph, and paired primary and secondary buttons.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/feature2).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/feature2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/feature2-light-c9cbbb4117a52209.png
- Registry item: https://shadcnblocks.com/r/feature2.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/feature2.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `cn`
- Registry items: `button`

## Files

### `block/feature2/feature2.tsx`

```tsx
import { cn } from "cn";
import { Button } from "@/components/ui/button";

interface Image {
  src: string;
  alt: string;
  srcDark?: string;
}
interface Button {
  text: string;
  url: string;
  icon?: React.ReactNode;
}
interface Buttons {
  primary?: Button;
  secondary?: Button;
}

interface FeatureSingleFocusProps {
  heading: string;
  description: string;
  image: Image;
  buttons?: Buttons;
  className?: string;
}

type Props = Partial<FeatureSingleFocusProps>;

const defaultProps: FeatureSingleFocusProps = {
  heading: "Ship the roadmap your team actually believes in.",
  description:
    "Shadcnblocks gives product and design teams a single place to plan, review, and launch. Connect strategy to execution with blocks that stay on-brand and ready to ship.",
  buttons: {
    secondary: {
      text: "Learn more",
      url: "#",
    },
  },
  image: {
    src: "https://cdn.shadcnblocks.com/shadcnblocks/image-set/modern/saas-details/saas-detail-1-1x1.png",
    alt: "Product interface",
  },
};

const Feature2 = (props: Props) => {
  const { heading, description, image, buttons, className } = {
    ...defaultProps,
    ...props,
  };

  return (
    <section className={cn("py-32", className)}>
      <div className="container">
        <div className="grid items-center gap-16 lg:grid-cols-2">
          <img
            src={image.src}
            alt={image.alt}
            className="aspect-square w-full rounded-lg border border-border object-cover"
          />
          <div className="flex flex-col items-center text-center lg:items-start lg:text-left">
            <h2 className="mb-6 text-4xl font-semibold tracking-tight text-balance lg:text-5xl">
              {heading}
            </h2>
            {description && (
              <p className="mb-8 max-w-xl text-muted-foreground lg:text-lg">
                {description}
              </p>
            )}
            <div className="flex w-full flex-col justify-center gap-2 sm:flex-row lg:justify-start">
              {buttons?.secondary ? (
                <Button variant="outline" asChild>
                  <a
                    href={buttons.secondary.url}
                    target="_blank"
                    rel="noreferrer"
                  >
                    {buttons.secondary.text}
                  </a>
                </Button>
              ) : null}
            </div>
          </div>
        </div>
      </div>
    </section>
  );
};

export { Feature2 };
```
