# AuthorCard

> Who wrote the post, at its end or in a sidebar, as pieces a caller arranges: a portrait, the name, a subtitle and a short bio, links to find more, and a footer for a sign-up form.

```ts
import { AuthorCard } from "@sdxc/ui/blog";
```

Renders an `<aside>` landmark, named "About the author" unless the caller passes its own
`aria-label`. A `.Portrait` sits beside the `.Details` in a `row` and above them in a
`stack`; a `.Footer` spans the card under both. Restyle through AuthorCard.CustomProperties.

## Examples

```tsx
<AuthorCard>
	<AuthorCard.Portrait initials="AB" />
	<AuthorCard.Details>
		<AuthorCard.Name href="/about">Ada Byron</AuthorCard.Name>
		<AuthorCard.Bio>Writes about engines.</AuthorCard.Bio>
	</AuthorCard.Details>
	<AuthorCard.Footer><NewsletterForm action="/subscribe" /></AuthorCard.Footer>
</AuthorCard>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `layout?` | `"row" \| "stack"` | `row` sets the portrait beside the details, for the end of a post; `stack` sets it above, for a narrow sidebar. |
| `variant?` | `"plain" \| "tinted"` | `plain` opens on a rule, the way a post's footer separates its parts; `tinted` sets the card on a tinted, rounded surface. |

Also accepts everything in `TagProps<"aside">`.


### AuthorCard.Portrait

The author's picture: an avatar from `image` or `initials`, or the children in its place, such as a framed photo.

| Prop | Type | Description |
| --- | --- | --- |
| `image?` | `string` | The avatar's address; the name beside it describes it. |
| `initials?` | `string` | Drawn in the avatar when there is no `image`, or while it loads. |

Also accepts everything in `TagProps<"span">`.


### AuthorCard.Details

The column of text beside or under the portrait, stacking the name, subtitle, bio and links in the order written.

Also accepts everything in `TagProps<"div">`.


### AuthorCard.Name

The author's name, a quiet link when given an `href`.

| Prop | Type | Description |
| --- | --- | --- |
| `href?` | `string` | The author's page, such as an about page. |

Also accepts everything in `TagProps<"p">`.


### AuthorCard.Subtitle

A short muted line under the name, such as "Writes about type and the web".

Takes no props of its own.

### AuthorCard.Bio

A sentence or two about the author, set as running text a little apart from the name.

Takes no props of its own.

### AuthorCard.Links

The places to read more from the author, as one wrapping row of `.Link`s.

Also accepts everything in `TagProps<"ul">`.


### AuthorCard.Link

One place to read more from the author, a brand link in a list item.

| Prop | Type | Description |
| --- | --- | --- |
| `href` | `string` |  |

Also accepts everything in `TagProps<"li">`.


### AuthorCard.Footer

What closes the card across its width under the portrait and details, such as a `NewsletterForm`.

Also accepts everything in `TagProps<"div">`.

