npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-muscle-group-selector

v1.0.5

Published

Wrapper for Vue3 with super powers of muscle group selector made by Ryan M. Poe.

Downloads

75

Readme

Vue Muscle Group Selector

Wrapper for Vue3 with super powers of muscle group selector made by Ryan M. Poe.

Demo


Vue Muscle Group Selector


Get started

Install

npm install vue-muscle-group-selector
# or 
yarn add vue-muscle-group-selector

Usage

<script setup>
import VueMuscleGroupSelector from "vue-muscle-group-selector";
import "vue-muscle-group-selector/dist/style.css";

const handleOnSelectMuscularGroup = selection => {
  console.log(selection) // array of selection e.g ['abs']
}
</script>

<template>
  <div>
    <muscle-group-selector
      :translations="muscularGroupTranslations"
      @on-select="handleOnSelectMuscularGroup"
    />
  </div>
</template>

Props

| Prop | Type | Description | Default | |-------|------|-------------|---------| | allowMultiple | BOOLEAN | If true, the user can select multiple muscle groups, if false, the user can only select one muscle group. | false | | primaryColor | STRING | The primary color of the component, this is the color of the selected muscle groups. | #03001c | | muscleColor | STRING | The color of the NO selected but active muscle | #fff | | strokeColor | STRING | This is the outside line of the body | #4d4d4d | | initialValues | ARRAY | Array of muscle groups to be selected by default, this is the ID of the muscle group, not the name. | [] | | showMusclesListHelper | BOOLEAN | If true, the helper list of the muscle groups will be shown, if false, the helper list will be hidden. | false | | showBackMuscles | BOOLEAN | If true, the legs muscle groups will be shown, if false, the legs muscle groups will be hidden. | true | | showFrontMuscles | BOOLEAN | If true, the back muscle groups will be shown, if false, the back muscle groups will be hidden. | true | | translations | OBJECT | The translations of the muscle groups, the keys are the IDs of the muscle groups, the values are the names of the muscle groups. | object | | readOnly | BOOLEAN | Use with the initial values to only show the selected muscle group | false |

translations

The component has a translations prop to set all the labels of the component, below you can view the default values of this prop.

{
  arms: {
    arms: "Arms",
    bicpes: "Biceps",
    deltoids: "Deltoids",
    forearms: "Forearms",
    triceps: "Triceps",
  },
  back: {
    back: "Back",
    trapezius: "Trapezius",
    lats: "Lats",
  },
  core: {
    core: "Core",
    abs: "Abs",
    obliques: "Obliques",
    pectorals: "Pectorals",
  },
  legs: {
    legs: "Legs",
    adductors: "Adductors",
    calves: "Calves",
    hamstrings: "Hamstrings",
    glutes: "Glutes",
    quads: "Quads",
  }
}

Events

| Event | Description | |-----------|-------------------------------------------------------------------------------------------------------------------| | onSelect | This event is dispatched when the user selects any muscular group and returns an array of the selection. |

Give a Star! ⭐

If you like this project or plan to use it in the future, please give it a star. Thanks 🙏

Bugs and Feedback

For bugs, questions, and discussions, please use the Github Issues we have cool templates for you.

Contributing

For contributing, please see the following links:

We're glad to be supported by respected companies and individuals from several industries. See our Github Sponsors learn more.

Sponsors

Become a Github Sponsor


Authors

License

MIT License (see LICENSE for details).