Calm motion: animations on this site only fade, with no movement
RSVP
Going, maybe, or not going, with counts and faces
Asks a person if they come to an event, and shows how many others come. The faces of some people who go show under the buttons. For a question with your own answers, use the poll.
Basic
41 going
v-modelis the answer of the reader:yes,maybe,no, or none. A second click on the chosen answer clears it.countsgives the answers of the other people, without the reader. The answer of the reader adds one to its count. So, if the reader changes the answer, the numbers stay right. Send each change to your server.goingis a list of some of the people who go, each with anameand an optionalsrc. They show as an avatar group. If the reader goes, "you" comes first.labelis the question, such as the name of the event, and it names the group of buttons.- Each answer is a toggle button with
aria-pressed, and the chosen one is filled. Change the words withlabelsor a label pack:yes,maybe,no,question,you, andgoingCount(a function of the count).
Usage
ts
import { BlessRsvp } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
counts | Partial<Record<BlessRsvpAnswer, number>> | {} | the answers of the other people, without the reader |
going | BlessAvatarGroupItem[] | [] | some of the people who go, for the faces |
label | string | — | the question, for example the name of the event |
labels | Partial<Record<BlessRsvpAnswer, string> & { question: string; you: string; goingCount: (n: number) => string; }> | — | |
modelValue | BlessRsvpAnswer | — | the answer of the reader; a second click on it clears it |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: BlessRsvpAnswer | undefined] |