Components
Comment
A voice on the record: the portrait hangs left (the avatar slot), the body carries the byline from `author` and `datetime`, the ink is the default slot, and the actions slot is the row of answers.
#Basic usage
SW
The registry reads cleaner since the hairlines went in — the eye knows where one entry ends.
<script setup lang="ts">
import { Avatar, Button, Comment } from "@bysages/vue";
</script>
<template>
<Comment author="Sage Wei" datetime="Today, 09:12" class="w-full">
<template #avatar>
<Avatar.Root>
<Avatar.Fallback>SW</Avatar.Fallback>
</Avatar.Root>
</template>
The registry reads cleaner since the hairlines went in — the eye knows where one entry ends.
<template #actions>
<Button variant="ghost" size="sm">Reply</Button>
<Button variant="ghost" size="sm">Cite</Button>
</template>
</Comment>
</template>
AK
Filed. Shelved in the eastern cabinet, fourth row.
<script setup lang="ts">
import { Avatar, Comment } from "@bysages/vue";
</script>
<template>
<Comment author="Archive keeper" datetime="2026-09-15" class="w-full">
<template #avatar>
<Avatar.Root>
<Avatar.Fallback>AK</Avatar.Fallback>
</Avatar.Root>
</template>
Filed. Shelved in the eastern cabinet, fourth row.
</Comment>
</template>
SW
Shall the hairlines run through the annex as well?
AK
Yes — same rule, same weight, one page everywhere.
<script setup lang="ts">
import { Avatar, Comment } from "@bysages/vue";
</script>
<template>
<div class="grid gap-2 w-full">
<Comment author="Sage Wei" datetime="Today, 09:12">
<template #avatar>
<Avatar.Root>
<Avatar.Fallback>SW</Avatar.Fallback>
</Avatar.Root>
</template>
Shall the hairlines run through the annex as well?
</Comment>
<div class="ps-11">
<Comment author="Archive keeper" datetime="Today, 10:03">
<template #avatar>
<Avatar.Root>
<Avatar.Fallback>AK</Avatar.Fallback>
</Avatar.Root>
</template>
Yes — same rule, same weight, one page everywhere.
</Comment>
</div>
</div>
</template>
#Props
#Comment
| Prop | Type | Default | Description |
|---|---|---|---|
author | String | undefined | — |
datetime | String | undefined | — |