Socket
Socket
Sign inDemoInstall

@maqe-vue/dropdown

Package Overview
Dependencies
18
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @maqe-vue/dropdown

The Vue2 component for dropdown


Version published
Maintainers
1
Created

Readme

Source

@maqe-vue/dropdown

The Vue2 component for dropdown

label-insde label-insde label-insde

See demo on: Storybook


Installation

NPM

Install the npm package.

npm install @maqe-vue/dropdown --save
Register the component
import VqmDropdown from '@maqe-vue/dropdown'
import '@maqe-vue/dropdown/dist/style.css'

Vue.component('vmq-dropdown', VqmDropdown)

Usage

Basic
<vqm-dropdown
    v-model="input"
    :list="list"
    label-style="label-inside"
    label="Label"
    size="medium"
/>

<script>
export default {
	data() {
		return {
			input: "",
			list: [
				{ title: "Selection 1", value: "1" },
				{ title: "Selection 2", value: "2" },
				{ title: "Selection 3", value: "3" },
				{ title: "Selection 4", value: "4" },
				{ title: "Selection 5", value: "5" },
				{ title: "Selection 6", value: "6" }
			]
		};
	}
};
</script>

Searching supported to arrow up, down and enter keys.

<vqm-dropdown
    v-model="input"
    :list="list"
    label-style="label-inside"
    label="Label"
    size="medium"
    searchable
/>

API

Props
NameTypeDescriptiondefault
v-modelbind
containerClassstring
searchablebooleanfalse
label-stylestring`label-insidelabel-outside
labelstring
placeholderstring
disabledbooleanfalse
requiredbooleanfalse
helper-textstring
size`smallmediumlarge`
size-dropdown-list`smalllarge`

Style

Custom Style

Custom style with css variable

<vqm-dropdown
    v-model="input"
    :list="list"
    label-style="label-inside"
    label="Label"
    size="medium"
/>

// for example to set as a global
<style>
    :root {
        --vqm-dropdown-color: tan;
        --vqm-dropdown-hover-color: rgba(203, 203, 203, .2);
        --vqm-dropdown-selected-color: tan;
    }
</style>

Keywords

FAQs

Last updated on 18 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc