Search documentation v0.10.1

Author

Display author information with avatar, name, and social links

Source Report Issue

Use the Author component to display information about an author, including their name, photo, bio, and social links. They add trust and authenticity to content and allow readers to connect with the author through social links. They can also help you to credit authors.

avatar
Jake Brown Astro developer
Description about the author, including previous work experiences, studies, and projects. Anything that can establish credibility, experience, and expertise should be listed here to instill trustworthiness in the reader. Supports HTML tags.
How to use the Author component in Astro
<Author
img={{
src: '/img/author.png',
alt: 'Jake',
size: 50
}}
name="Jake Brown"
role="Astro developer"
description="Description about the author..."
socials={{
links: [
'https://linkedin.com',
'https://x.com',
'https://github.com'
]
}}
/>

The Author component expects the following list of props:

Optionally, you can also add social media links using the socials prop as shown in the above example. The socials prop expects a SocialsProps object.

Different Types

The Author component is built on top of the Card component, meaning you can extend your component with Card-specific props. For example, you can use the title, secondary, or compact props to get different visuals:

About the Author
avatar
Jake Brown Astro developer
Secondary card with title.
avatar
Jonathan Miller React developer
Compact card without title.
<Author
title="About the Author"
secondary={true}
...
/>
<Author
compact={true}
...
/>

API

type AuthorProps = {
name: string
role: string
description: string
socials?: SocialsProps
img: {
src: string
} & Omit<AvatarProps, 'img'>
} & CardProps
Please see the documentation of the Socials, Avatar, and Card components for the other types.
PropPurpose
name Sets the name of the author.
role Sets the role of the author.
description Sets a description about the author.
socials Sets a list of social links where the author is present.
img.src Sets an avatar URL for the author.