Skip to content
New

Team, staff

beta

The people who serve you: a portrait, name and role, their specialties as tags, and a link to book with each of them.

npx rasengan-ui add team-staff

Our barbers

Four chairs, four styles. Book with the one you like, or let us pick who is free first.

Use it
A barber, a salon, a clinic or a restaurant whose clients choose a person, or come back for one.
Avoid it
A company's leadership: a marketing team block fits better.
Built with
BadgeButton

Installation

Terminal
npx rasengan-ui add team-staff

It installs into components/blocks/team-staff/, with what it uses (Badge, Button) 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 { TeamStaff } from "@/components/blocks/team-staff";
import { home } from "@/content/home";
 
export default function Home() {
  return <TeamStaff content={home.team} />;
}
content/home.ts
import { example, type TeamStaffContent } from "@/components/blocks/team-staff";
 
export const home = {
  team: { ...example, title: "Meet the team" } satisfies TeamStaffContent,
};

Each member can have a booking link (cta): point it at your booking form (#booking) or a message. A member without a photo shows their initials.

Content

FieldTypeLimitsGuidance
titlestring2–48 chars'Meet the team', 'Our barbers'.
sublineoptionalstring≤ 160 chars
membersobject[]2–8 itemsPortraits (4:5) read best; each can have its own booking link.
members[].namestring1–48 chars
members[].rolestring1–48 chars'Senior barber', 'Head chef'.
members[].imageoptionalobject
members[].image.srcstringA local path ('/images/terrace.jpg') or the project's asset URL.
members[].image.altstring≤ 140 charsWhat the image shows, for people who cannot see it. Empty only if purely decorative.
members[].image.widthinteger
members[].image.heightinteger
members[].specialtiesoptionalstring[]≤ 4 itemsShort: 'fades', 'braids', 'pastry'.
members[].ctaoptionalobjectBooking with this person, e.g. 'Book with Junior'.
members[].cta.labelstring1–32 charsA verb first, two to four words: 'Start free', 'Book a table'.
members[].cta.hrefstringA path ('/pricing'), an anchor ('#menu'), or a full URL.

Props

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

Accessibility

  • Portraits have their own alt; the initials tile is hidden from screen readers, the name is read below it.