MCPcopy Create free account
hub / github.com/github/docs / UserCard

Function UserCard

components/landing/UserCard.tsx:8–27  ·  view source on GitHub ↗
({ user, href }: Props)

Source from the content-addressed store, hash-verified

6 href?: string
7}
8export const UserCard = ({ user, href }: Props) => {
9 return (
10 <a
11 className="Box d-flex height-full color-shadow-medium hover-shadow-large no-underline color-fg-default p-4"
12 href={href || `https://github.com/${user.username}`}
13 >
14 <div className="flex-shrink-0 mr-3">
15 <img
16 src={`https://github.com/${user.username}.png`}
17 alt={user.username}
18 className="avatar avatar-8 circle"
19 />
20 </div>
21 <div className="flex-auto">
22 <h4>{user.username}</h4>
23 <p className="mt-1 color-fg-muted">{user.description}</p>
24 </div>
25 </a>
26 )
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected