Search documentation v1.0.0

Team

Showcase team members to build trust and authority

Source Report Issue

Use the Team component to display team members with details like names, roles, bios, and social links.

Preview
Alice JohnsonAlice JohnsonFrontend Developer
Alice is our creative frontend developer with a passion for building user-friendly, responsive interfaces using React.
Bob SmithBob SmithBackend Developer
Bob is our backend expert specializing in Node.js and database management, ensuring seamless data flow and efficient server-side operations.
Charlie DavisCharlie DavisUI/UX Designer
Charlie brings intuitive design concepts to life with a focus on user experience and accessibility, always striving for clean and modern visuals.
Daniel LeeDaniel LeeProject Manager
Daniel leads the team with excellent communication skills and organizational expertise, ensuring deadlines are met and projects are completed on time.
Ethan BrownEthan BrownQA Engineer
Ethan is our detail-oriented QA engineer who ensures every feature is tested thoroughly for quality and functionality before release.
Fiona GreenFiona GreenDevOps Engineer
Fiona manages the deployment pipelines and cloud infrastructure, making sure our applications are scalable, secure, and run smoothly.
How to use the Team component
---
import { Card } from 'webcoreui/astro'
import Team from '@blocks/Team.astro'
const members = [
{
img: 'img/alice.png',
name: 'Alice Johnson',
role: 'Frontend Developer',
description: 'Alice is our creative frontend developer.',
socials: [
'https://linkedin.com/',
'https://github.com/'
]
},
{ ... }
]
---
<Card title="Preview" secondary={true}>
<Team members={members} />
</Card>

The Team component expects a members property that defines team members. Each member object can have the above properties. The component will display members in a 3-column layout by default. This can be configured using the columns prop. Social links are displayed with social icons. See the documentation of the Socials component for supported platforms.

No Avatars

Only the name property is required. If no img is provided, a fallback icon will be rendered:

Team with only required field
Alice Johnson
Bob Smith
Charlie Davis
Daniel Lee
Ethan Brown
Fiona Green
---
const members = [
{
name: 'Alice Johnson'
},
{ ... }
]
---
<Team members={members} />

Custom Avatars

You can customize avatar images by specifying an avatar prop with one of the following properties:

Alice JohnsonAlice Johnson
Bob SmithBob Smith
Charlie DavisCharlie Davis
Daniel LeeDaniel Lee
Ethan BrownEthan Brown
Fiona GreenFiona Green
<Team
members={members}
avatar={{ borderColor: 'var(--w-color-info)' }}
/>

Customizing Columns

The Team component is rendered with a 3 column layout. You can customize this through the className property by passing additional CSS, or simply set the columns property:

Two-column layout
Alice JohnsonAlice JohnsonFrontend Developer
Alice is our creative frontend developer with a passion for building user-friendly, responsive interfaces using React.
Bob SmithBob SmithBackend Developer
Bob is our backend expert specializing in Node.js and database management, ensuring seamless data flow and efficient server-side operations.
Charlie DavisCharlie DavisUI/UX Designer
Charlie brings intuitive design concepts to life with a focus on user experience and accessibility, always striving for clean and modern visuals.
Daniel LeeDaniel LeeProject Manager
Daniel leads the team with excellent communication skills and organizational expertise, ensuring deadlines are met and projects are completed on time.
Ethan BrownEthan BrownQA Engineer
Ethan is our detail-oriented QA engineer who ensures every feature is tested thoroughly for quality and functionality before release.
Fiona GreenFiona GreenDevOps Engineer
Fiona manages the deployment pipelines and cloud infrastructure, making sure our applications are scalable, secure, and run smoothly.
How to customize columns
<Team
members={members}
columns={2}
/>

The component is responsive, it’s displayed as a single column for small devices. If the column property is set to greater than 1, it’ll only apply to devices above sm. If the column property is greater than 2, it’ll only apply to devices above md.

API

type TeamProps = {
members: {
img?: string
name: string
role?: string
description?: string
socials?: string[]
}[]
avatar?: Pick<AvatarProps, 'size' | 'lazy' | 'borderColor'>
columns?: 1 | 2 | 3 | 4,
className?: string
} & Pick<CardProps, 'compact' | 'secondary'>
Please see the documentation of the Avatar and Card components for the AvatarProps and CardProps types.
PropPurpose
members.img Sets an avatar for the team member.
members.name Sets the name of the team member.
members.role Sets the role of the team member.
members.description Sets a short description about the team member. Supports HTML tags.
members.socials Sets a list of social links for the team member.
avatar Sets the size, loading, or border of images.
columns Sets the number of columns. Defaults to 3.
className Pass additional CSS classes for your section.