Staaarter

Wellness Editorial Section

Long-form content section with rich text, bullet point highlights, and call-to-action buttons. Perfect for wellness blogs, healing journey stories, and health philosophy pages.

By Staaarter Team
Health
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/wellness-editorial-section.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/health/health5.tsx instead.

Usage

The file also exports health5Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Health5, health5Demo } from "@/components/blocks/health/health5";

export default function Page() {
  return <Health5 {...health5Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall uppercase label above the heading; only rendered when set.
headingReactNodenoneSection heading.
paragraphsstring[]noneBody copy, one paragraph per array item.
highlightsstring[][]Checked bullet-point list below the body copy; the whole list is skipped when empty.
buttonsButtonItem[][]CTA buttons at the end of the section; skipped when empty.
classNamestringnoneExtra classes for the outer section element.

Types

type ButtonItem = {
  label: string;
  href?: string;
  variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive";
};

Behavior notes

  • paragraphs has no length limit and no truncation; every string in the array renders as its own <p>.
  • highlights and buttons are independent and each only renders its section when it has at least one item.
  • CTA buttons are plain links (via Button's render prop) to a href; there is no form submission or client-side action behind them, matching every other static About/CTA block in this repo.
  • Every button defaults to variant "default" unless it sets its own variant.