UNPKG

@mjcdev/react-body-highlighter

Version:

[![npm](https://img.shields.io/npm/v/react-native-body-highlighter.svg)](https://www.npmjs.com/package/react-native-body-highlighter) [![Downloads](https://img.shields.io/npm/dt/react-native-body-highlighter.svg)](https://www.npmjs.com/package/react-nativ

31 lines (28 loc) 1.15 kB
import React from 'react'; type Slug = "abs" | "adductors" | "ankles" | "biceps" | "calves" | "chest" | "deltoids" | "deltoids" | "feet" | "forearm" | "gluteal" | "hamstring" | "hands" | "hair" | "head" | "knees" | "lower-back" | "neck" | "obliques" | "quadriceps" | "tibialis" | "trapezius" | "triceps" | "upper-back"; interface BodyPart { color?: string; slug?: Slug; path?: { common?: string[]; left?: string[]; right?: string[]; }; } interface ExtendedBodyPart extends BodyPart { intensity?: number; leftSideIntensity?: number; rightSideIntensity?: number; side?: "left" | "right"; } type BodyProps = { colors?: ReadonlyArray<string>; data: ReadonlyArray<ExtendedBodyPart>; scale?: number; side?: "front" | "back"; gender?: "male" | "female"; onBodyPartClick?: (b: ExtendedBodyPart, side?: "left" | "right") => void; border?: string | "none"; }; declare const Body: ({ colors, data, scale, side, gender, onBodyPartClick, border, }: BodyProps) => React.JSX.Element; export { type BodyPart, type BodyProps, type ExtendedBodyPart, type Slug, Body as default };