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
English
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.
@ana.records
Host of Home Studio, a weekly show about good sound on a small budget. Records from a wardrobe in Bandung.
<template>
<BlessProfileCard
v-model:following="following"
name="Ana Putri"
handle="@ana.records"
href="#"
bio="Host of Home Studio, a weekly show about good sound on a small budget. Records from a wardrobe in Bandung."
:stats
followable
style="max-width: 360px"
>
<template #actions>
<BlessButton size="sm" variant="ghost">Message</BlessButton>
</template>
</BlessProfileCard>
</template>
<script setup lang="ts">
import { ref } from "vue";
import { BlessButton, BlessProfileCard } from "blessing-ui";
const following = ref(false);
const stats = [
{ label: "followers", value: 12_480 },
{ label: "episodes", value: 41 },
{ label: "hours on air", value: 63 },
];
</script>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).followable, a follow button shows. It is a toggle with aria-pressed, and v-model:following holds its state.actions slot puts more buttons next to the follow button.labels or a label pack: follow and following.import { BlessProfileCard } from "blessing-ui";| Name | Type | Default | Description |
|---|---|---|---|
name* | string | — | |
handle | string | — | for example `@ana` |
avatar | string | — | |
cover | string | — | a picture for the band at the top |
bio | string | — | |
stats | BlessProfileStat[] | [] | counts under the bio, for example followers and episodes |
href | string | — | a link for the name |
followable | boolean | — | show the follow button |
locale | string | "en" | the language of the counts, for example `id` |
labels | Partial<{ follow: string; following: string; }> | — | |
following | boolean | false | the reader follows this person |
| Name | Payload | Description |
|---|---|---|
update:following | [value: boolean] |
| Name | Scope | Description |
|---|---|---|
actions | — |