Skip to content
Calm motion: animations on this site only fade, with no movement

Profile card ​

A person with a cover, an avatar, a bio, counts, and a follow button

Shows a person or a show in a card, for example a host, a guest, or an author. For a small preview on hover, use the hover card.

Basic

Ana Putri

@ana.records

Host of Home Studio, a weekly show about good sound on a small budget. Records from a wardrobe in Bandung.

followers
12.5K
episodes
41
hours on air
63
  • name is the name, as a heading. With href, the name is a link. handle, bio, and avatar are optional. With no avatar, the avatar shows the initials.
  • cover is the URL of a picture for the band at the top. With no cover, the band is gray.
  • stats is a list of counts, each with a label and a value. Big numbers show in short form, such as 12.5K. locale sets the format (default en).
  • With followable, a follow button shows. It is a toggle with aria-pressed, and v-model:following holds its state.
  • The actions slot puts more buttons next to the follow button.
  • Change the words with labels or a label pack: follow and following.

Usage ​

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

API ​

Props

NameTypeDefaultDescription
name*string—
handlestring—for example `@ana`
avatarstring—
coverstring—a picture for the band at the top
biostring—
statsBlessProfileStat[][]counts under the bio, for example followers and episodes
hrefstring—a link for the name
followableboolean—show the follow button
localestring"en"the language of the counts, for example `id`
labelsPartial<{ follow: string; following: string; }>—
followingbooleanfalsethe reader follows this person

Events

NamePayloadDescription
update:following[value: boolean]

Slots

NameScopeDescription
actions—

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