Skip to content
New

About, story

beta

The owner tells the story beside a photo: a title, two or three short paragraphs, a signature and three facts.

npx rasengan-ui add about-story
The kitchen, with pans hanging over the stove.

Our story

Mama Ngono's recipes, since 2009

It started with four tables in a courtyard and my mother's ndolé. People came for the food and stayed for the evening, so we never left Akwa.

We still cook the way she taught us: the leaves washed by hand, the peanuts ground in the morning, the fish bought before the sun is up. It takes longer. You can taste it.

Esther NgonoOwner and chef

Opened
2009
Seats inside
30
Days a week
7
Use it
A family business or a craftsperson whose story is part of why people come.
Avoid it
A chain or a franchise: talk about the place, not the founder.
Built with
Tailwind classes and Lucide icons

Installation

Terminal
npx rasengan-ui add about-story

It installs into components/blocks/about-story/, with what it uses (no component) and lib/blocks.ts.

Usage

Without content, the block shows its example. Pass your own, typed by the block's schema, from a content file (here, the example with one field changed):

app/_routes/index.page.tsx
import { AboutStory } from "@/components/blocks/about-story";
import { home } from "@/content/home";
 
export default function Home() {
  return <AboutStory content={home.about} />;
}
content/home.ts
import { example, type AboutStoryContent } from "@/components/blocks/about-story";
 
export const home = {
  about: {
    ...example,
    title: "Our story",
  } satisfies AboutStoryContent,
};

Write the paragraphs in the owner's voice. The facts are short strings ("2009", "30"), shown large.

Content

FieldTypeLimitsGuidance
eyebrowoptionalstring≤ 32 chars'Our story'
titlestring6–70 charsThe heart of the story in one line: 'Mama Ngono's recipes, since 2009'.
paragraphsstring[]1–4 itemsThe story in the owner's voice: who, why, what makes it different.
imageobjectA photo of the owner, the team or the kitchen, portrait or square.
image.srcstringA local path ('/images/terrace.jpg') or the project's asset URL.
image.altstring≤ 140 charsWhat the image shows, for people who cannot see it. Empty only if purely decorative.
image.widthinteger
image.heightinteger
signatureoptionalobjectWho tells the story.
signature.namestring1–48 chars
signature.roleoptionalstring≤ 48 chars
factsoptionalobject[]≤ 3 items
facts[].valuestring1–12 chars'2009', '30', '4.8'
facts[].labelstring1–32 chars'Opened', 'Seats'

Props

PropNotes
contentAboutStoryContent; the example when left out
idthe section's id, for anchor links; "about" by default
headingLevel1, 2 or 3: the heading's tag; 2 by default
classNameon the <section>, for spacing

Accessibility

  • The facts are a description list: each label with its value.
  • The photo's alt says who or what it shows.