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

Body map ​

A body outline where a person points to the place of pain

Asks where it hurts in a symptom form or before a visit to a doctor. The person taps the parts of the body. The component does not give medical advice.

Basic
HeadNeckChestBellyHipsRight armLeft armRight handLeft handRight legLeft legRight footLeft foot
Chosen: Neck, Right arm
  • v-model is the list of chosen parts, such as ["neck", "rightArm"]. There are 13 parts, from the head to the leftFoot.
  • The outline is a front view, as a doctor sees the person. The right arm of the person is on the left of the picture.
  • Each part is a check box that the keyboard can reach. Tab moves between the parts, and Space or Enter toggles one. Screen readers hear the name of the part and whether it is checked.
  • A chosen part is filled and has a thick dashed edge. A line under the picture names the chosen parts.
  • Change the words with labels or a label pack: title, none, chosen (a function), and the name of each part.

Usage ​

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

API ​

Props

NameTypeDefaultDescription
labelsPartial<Record<BlessBodyPart, string> & { title: string; chosen: (parts: string) => string; none: string; }>—
modelValueBlessBodyPart[][]the parts the person points at

Events

NamePayloadDescription
update:modelValue[value: BlessBodyPart[]]

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