# TagList

> A post's tags as a wrapping row of links to each tag's page, every one led by a prefix such as `#`.

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

Renders the tags as a `<ul>` that wraps onto as many lines as it needs, each tag kept whole
on its line; a list with no tags renders nothing. Turn the links into chips or join them
with a separator through TagList.CustomProperties.

## Examples

```tsx
<TagList>
	{tags.map((tag) => <TagList.Tag href={tag.href}>{tag.label}</TagList.Tag>)}
</TagList>
```

```tsx
<TagList prefix="" aria-label="Topics">…</TagList>
```

```tsx
<TagList style={{ "--ui-tag-list-separator": '","' }}>…</TagList>
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `prefix?` | `string` | Set before every tag's label and hidden from assistive technology; an empty string shows the bare names. |
| `"aria-label"?` | `string` | The list's accessible name. |
| `children?` | `RemixNode` | The list's TagList.Tag parts. |

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


### TagList.Tag

One tag as a list item holding its link, the list's prefix set before the label and hidden from assistive technology.

Takes no props of its own.
