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

dm-menus

v0.1.0

Published

- [Introduction](#Introduction) - [Usage](#usage) - [Components](#components) - [Input](#input) - [Select](#select) - [Textarea](#textarea) - [Checkbox](#checkbox) - [Radio](#radio)

Downloads

1

Readme

Menu

Introduction

Vue Inputs is a package that bundles common form inputs using Bootstrap 4 framework. Each component acts as a wrapper, making it much easier to use form elements without the need to repeat labels, validation and other classes, help blocks.

Installation

npm install vue-inputs --save

Usage

Including this plugin in your VueJS application is very simple. This will register all available components globally, so you can use them anywhere in your application.

import FormInputs from 'vue-inputs'

Vue.use(FormInputs)

Components

All components have validator injected into them from parent component, so you don't need to worry about checking for errors. If error with same name as name property is found, validation error will be show on component.

Available props

Prop|Types|Default|Description -----|-----|-----|-----| label | String, Boolean| - | Label to show on the input. If false, label is not shown. name | String | - | Input's name value | any | - | Automatically injected when using v-model inline | Boolean | false | Show label and input inline input-group | Boolean | false | Show input group addon. Makes slot input-group-append available. (form-input only) options | Array | - | Options for select (form-select only) id | String | auto generated | ID (form-checkbox and form-radio only)

Input

<form-input
    label="First Name"
    name="first_name"
    v-model="user.firstName"
></form-input>

Select

<form-select
    label="Role"
    name="role_id"
    v-model="user.roleId"
    :options="roles"
></form-select>

Select component accepts array of objects as options:

roles: [
  { text: 'Select Role', value: null },
  { text: 'Administrator', value: 1 },
  { text: 'Subscriber', value: 2 }
]

Textarea

<form-textarea
    label="Content"
    name="content"
    v-model="post.content"
></form-textarea>

Checkbox

<form-checkbox
    label="I agree to terms and conditions"
    name="terms_and_conditions"
    v-model="user.terms_and_conditions"
></form-checkbox>

Radio

<form-radio
    label="Blue"
    name="color"
    value="blue"
    v-model="product.color"
></form-radio>