users
users
users: Array<{ id: number; name: string }>
this property provides a list of users that can be associated with comments. The default value is an empty array.
Usage
Initializing comments widget with data and list of users
<script>
import { Comments } from 'wx-svelte-comments';
const value = [
{
id: "1",
content: "Hello, world!",
user: 1,
date: new Date(),
},
];
const users = [
{ id: 1, name: "John Doe" },
{ id: 2, name: "Jane Doe" },
];
</script>
<Comments {value} {users} />