# Team Page If you would like to introduce your team, you may use Team components to construct the Team Page. There are two ways of using these components. One is to embed it in doc page, and another is to create a full Team Page. ## Show team members in a page You may use `` component exposed from `vitepress/theme` to display a list of team members on any page. ```html # Our Team Say hello to our awesome team. ``` The above will display a team member in card looking element. It should display something similar to below. `` component comes in 2 different sizes, `small` and `medium`. While it boils down to your preference, usually `small` size should fit better when used in doc page. Also, you may add more properties to each member such as adding "description" or "sponsor" button. Learn more about it in [``](#vpteammembers). Embedding team members in doc page is good for small size team where having dedicated full team page might be too much, or introducing partial members as a reference to documentation context. If you have large number of members, or simply would like to have more space to show team members, consider [creating a full team page](#create-a-full-team-page). ## Create a full Team Page Instead of adding team members to doc page, you may also create a full Team Page, similar to how you can create a custom [Home Page](./theme-home-page). To create a team page, first, create a new md file. The file name doesn't matter, but here lets call it `team.md`. In this file, set frontmatter option `layout: page`, and then you may compose your page structure using `TeamPage` components. ```html --- layout: page --- ``` When creating a full team page, remember to wrap all components with `` component. This component will ensure all nested team related components get the proper layout structure like spacings. `` component adds the page title section. The title being `

` heading. Use `#title` and `#lead` slot to document about your team. `` works as same as when used in a doc page. It will display list of members. ### Add sections to divide team members You may add "sections" to the team page. For example, you may have different types of team members such as Core Team Members and Community Partners. You can divide these members into sections to better explain the roles of each group. To do so, add `` component to the `team.md` file we created previously. ```html --- layout: page --- ``` The `` component can have `#title` and `#lead` slot similar to `VPTeamPageTitle` component, and also `#members` slot for displaying team members. Remember to put in `` component within `#members` slot. ## `` The `` component displays a given list of members. ```html ``` ```ts interface Props { // Size of each members. Defaults to `medium`. size?: 'small' | 'medium' // List of members to display. members: TeamMember[] } interface TeamMember { // Avatar image for the member. avatar: string // Name of the member. name: string // Title to be shown below member's name. // e.g. Developer, Software Engineer, etc. title?: string // Organization that the member belongs. org?: string // URL for the organization. orgLink?: string // Description for the member. desc?: string // Social links. e.g. GitHub, Twitter, etc. You may pass in // the Social Links object here. // See: https://vitepress.vuejs.org/config/theme-config.html#sociallinks links?: SocialLink[] // URL for the sponsor page for the member. sponsor?: string } ``` ## `` The root component when creating a full team page. It only accepts a single slot. It will style all passed in team related components. ## `` Adds "title" section of the page. Best use at the very beginning under ``. It accepts `#title` and `#lead` slot. ```html ``` ## `` Creates a "section" with in team page. It accepts `#title`, `#lead`, and `#members` slot. You may add as many sections as you like inside ``. ```html ... ```