Skip to content
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

Home recording, Indonesia

Public group · 12.5K members

Tips for rooms, mics, and editing. Share your setup and ask for help.

Podcast editors

Private group · 842 members

A closed room for people who edit shows for a living.

  • name and members are required. With href, the name is a link. cover and description are optional.
  • faces shows 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-model is where the reader stands: none, requested, or member.
  • For a public group, the button says "Join", and a click makes the reader a member. For a private group, it says "Ask to join", and a click sends a request. A second click leaves the group or cancels the request. Watch v-model to 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 labels or a label pack: join, request, requested, member, public, private, and members (a function).

Usage ​

ts
import { BlessGroupCard } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
name*string—
hrefstring—
coverstring—
descriptionstring—
members*number—
facesBlessAvatarGroupItem[]—a few members to show as faces
privateboolean—a private group needs an approval to join
localestring"en"
labelsPartial<{ join: string; request: string; requested: string; member: string; public: string; private: string; members: (count: string) => string; }>—
modelValueBlessGroupState"none"where the reader stands: not in, asked to join, or a member

Events

NamePayloadDescription
update:modelValue[value: BlessGroupState]

Released under the MIT License. Character names and artwork belong to their owners.