Team, staff
betaThe 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.
Junior
Founder, master barber
- fades
- beard design
Eric
Barber
- line-ups
- kids' cuts
Grace
Stylist
- braids
- locs
Samuel
Barber
- waves
- hot towel shave
- 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.
- Pairs with
- Services, price listBooking, form
Installation
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):
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
| Field | Type | Limits | Guidance |
|---|---|---|---|
title | string | 2–48 chars | 'Meet the team', 'Our barbers'. |
sublineoptional | string | ≤ 160 chars | |
members | object[] | 2–8 items | Portraits (4:5) read best; each can have its own booking link. |
members[].name | string | 1–48 chars | |
members[].role | string | 1–48 chars | 'Senior barber', 'Head chef'. |
members[].imageoptional | object | ||
members[].image.src | string | A local path ('/images/terrace.jpg') or the project's asset URL. | |
members[].image.alt | string | ≤ 140 chars | What the image shows, for people who cannot see it. Empty only if purely decorative. |
members[].image.width | integer | ||
members[].image.height | integer | ||
members[].specialtiesoptional | string[] | ≤ 4 items | Short: 'fades', 'braids', 'pastry'. |
members[].ctaoptional | object | Booking with this person, e.g. 'Book with Junior'. | |
members[].cta.label | string | 1–32 chars | A verb first, two to four words: 'Start free', 'Book a table'. |
members[].cta.href | string | A path ('/pricing'), an anchor ('#menu'), or a full URL. |
Props
| Prop | Notes |
|---|---|
content | TeamStaffContent; the example when left out |
id | the section's id, for anchor links; "team" by default |
headingLevel | 1, 2 or 3: the heading's tag; 2 by default |
className | on the <section>, for spacing |
Accessibility
- Portraits have their own
alt; the initials tile is hidden from screen readers, the name is read below it.