Calm motion: animations on this site only fade, with no movement
Group card
A group with a cover, the members, and a join button
Shows one community in a list of groups. For one person, use the profile card.
Basic
nameandmembersare required. Withhref, the name is a link.coveranddescriptionare optional.facesshows a few members as an avatar group.- The line under the name gives the kind of group, public or private. It also gives the number of members in short form, such as "12.5K members".
v-modelis where the reader stands:none,requested, ormember.- For a public group, the button says "Join", and a click makes the reader a member. For a
privategroup, it says "Ask to join", and a click sends a request. A second click leaves the group or cancels the request. Watchv-modelto save the change. - The button name ends with the name of the group, so a list of cards does not have many buttons with the same name.
- Change the words with
labelsor a label pack:join,request,requested,member,public,private, andmembers(a function).
Usage
ts
import { BlessGroupCard } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
name* | string | — | |
href | string | — | |
cover | string | — | |
description | string | — | |
members* | number | — | |
faces | BlessAvatarGroupItem[] | — | a few members to show as faces |
private | boolean | — | a private group needs an approval to join |
locale | string | "en" | |
labels | Partial<{ join: string; request: string; requested: string; member: string; public: string; private: string; members: (count: string) => string; }> | — | |
modelValue | BlessGroupState | "none" | where the reader stands: not in, asked to join, or a member |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: BlessGroupState] |