1581138660
Enhanced checkboxes /radio input, component for vue 2+. vue-enhanced-check
Note that unicode is used for ‘icons’. Therefore design can change according to your browser. It is still possible to override CSS style with ‘!important’ instruction (checked and hover styles)
npm install --save vue-enhanced-check
import { EnhancedCheck, EnhancedCheckGroup, EnhancedCheckRadio, EnhancedToggle } from 'vue-enhanced-check'
or only one according to your needs
import { EnhancedCheck } from 'vue-enhanced-check'
export default {
components: { EnhancedCheck, EnhancedCheckGroup, EnhancedCheckRadio, EnhancedToggle },
methods: ...
}
Label is prefixed by ‘check’ icon
<enhanced-check label="Checkbox"></enhanced-check>
<enhanced-check :label="sc_label" :subClass="sc_subclass"
v-model="sc_model" :disabled="sc_disabled"
:rounded="sc_rounded" :animate="sc_animate"
id="enhancedCheck" name="" value="">
</enhanced-check>
Prop | Type | Note |
---|---|---|
label |
String |
REQUIRED: by design, label is a main part of the display |
id |
String |
id of input and associated label. |
name |
String |
name of classic input. Empty by default |
value |
String |
value of classic input. Empty by default |
subClass |
String |
Same colors than bootstrap style, possible values are ‘default’, ‘primary’, ‘success’, ‘warning’, ‘danger’ |
disabled |
Boolean |
False by default. Prevent clic action but not direct model change |
rounded |
Boolean |
False by default. Rounded border style |
animate |
Boolean |
False by default. Add a transition on style |
As a classic simple checkbox, model bound to check state: true or false
<enhanced-check-group :label="['First', 'Second', 'Third']"></enhanced-check-group>
<enhanced-check-group :label="['First', 'Second', 'Third']"
:subClass="gc_subclass" v-model="gc_model"
:disabled="gc_disabled" :rounded="gc_rounded"
:animate="gc_animate" :inline="gc_inline"
:combine="gc_combine"
:value="[gc_val1, gc_val2, gc_val3]"
id="enhancedCheckGroup" name="">
</enhanced-check-group>
Prop | Type | Note |
---|---|---|
label |
Array |
REQUIRED |
value |
Array |
Value for each input. By default equal to label |
id |
String /Array |
id of input and associated label. If string provided, each element id will have a counter as suffix |
name |
String /Array |
name of classic input. Use array to specify different names |
subClass |
String |
Same than checkbox |
disabled |
Boolean |
Same than checkbox |
rounded |
Boolean |
Same than checkbox |
animate |
Boolean |
Same than checkbox |
inline |
Boolean |
False by default. Turn all input as inline-block |
combine |
Boolean |
False by default. Turn ‘check’ icon into ‘plus’ icon |
As classic multiple checkboxes, model bound to array of value from checked input
Label is prefixed by ‘dot’ icon
<enhanced-check-radio :label="['Element A', 'Element B', 'Element C']"></enhanced-check-radio>
<enhanced-check-radio :label="['Element A', 'Element B', 'Element C']"
name="radiotest" :subClass="rc_subclass"
v-model="rc_model" :disabled="rc_disabled"
:rounded="rc_rounded" :animate="rc_animate"
:inline="rc_inline" id="enhancedCheckRadio"
:value="[rc_val1, rc_val2, rc_val3]">
</enhanced-check-radio>
Prop | Type | Note |
---|---|---|
label |
Array |
REQUIRED |
name |
String |
name of classic input. |
id |
String /Array |
id of input and associated label. If string provided, each element id will have a counter as suffix |
value |
Array |
Value for each input. By default equal to label |
subClass |
String |
Same than checkbox |
disabled |
Boolean |
Same than checkbox |
rounded |
Boolean |
Same than checkbox |
animate |
Boolean |
Same than checkbox |
inline |
Boolean |
Same than checkbox group |
As classic radio buttons, model bound to value from checked input
Checkbox is replaced by 2 switching labels, for on and off states
<enhanced-toggle></enhanced-check>
<enhanced-toggle :labelOn="tc_labelOn" :labelOff="tc_labelOff"
:styleOn="tc_styleOn" :styleOff="tc_styleOff"
v-model="tc_model"
:disabled="tc_disabled" :rounded="tc_rounded"
id="enhancedToggle" name="">
</enhanced-toggle>
Prop | Type | Note |
---|---|---|
labelOn |
String |
Label display for ‘on’ state (checked). Default is ‘On’ |
labelOff |
String |
Label display for ‘off’ state (unchecked). Default is ‘Off’ |
styleOn |
String |
style for ‘on’ state (checked), see checkbox’s subclass. Default is primary |
styleOff |
String |
style for ‘off’ state (unchecked), see checkbox’s subclass. Default is default |
id |
String |
id of input and associated label. |
name |
String |
Same than checkbox |
value |
String |
Same than checkbox |
disabled |
Boolean |
Same than checkbox |
rounded |
Boolean |
Same than checkbox |
As a classic simple checkbox, model bound to check state: true or false
You can define your own check color by adding a specific style
For example, let’s define a ‘custom’ sub class.
<enhanced-check label="Custom" subClass="custom"></enhanced-check>
Checkbox will get the class ‘enhancedCheck-custom’, that you can use in your CSS. Simple override for checkboxes:
.enhancedCheck.enhancedCheck-custom input[type="checkbox"]:checked + label:before {
background: fuchsia;
color: white;
}
.enhancedCheck.enhancedCheck-custom input[type="checkbox"]:not(:checked) + label:hover {
border-color: fuchsia;
}
Full less sample:
.enhancedCheck.enhancedCheck-custom {
input[type="radio"], input[type="checkbox"] {
&:checked + label:before {
background: $color;
color: white;
}
&:not(:checked) + label:hover {
border: 1px solid $color;
}
&:checked:disabled + label:before {
background: $color-disabled;
}
&:not(:checked):disabled + label:hover {
border: 1px solid $color-disabled;
}
}
}
npm install
npm run dev
, site is at http://localhost:8081.npm run build
command and commit your work for a pull request.Author: Keiwen
Live Demo: https://keiwen.github.io/vue-enhancedCheck/
GitHub: https://github.com/Keiwen/vue-enhancedCheck
#vuejs #javascript #vue-js
1578498958
Vue input component gives you a baseline to create your own custom inputs. It consists of a prepend/append slot, messages, and a default slot. In this article I will share 15 Vue input components to you.
A vue component that wraps a input type=number with a customizable range slider flyout with 2-way binding.
International Telephone Input with Vue.
Allow restricted character sets in input elements.
Features
The Vue Currency Input plugin allows an easy input of currency formatted numbers.
Input components for vue.js.
Simple example of issue I am seeing with input labels.
A Vue.js wrapper for Zurb’s Tribute library for native @mentions.
Number input with rich functionality for Vue.js.
Features
Super tiny input mask library for vue.js based on PureMask.js (~2kb) exposed as directive. No dependencies.
mask directive for vue.js
An ip address input with port and material design support.
Tiny input/directive mask for currency
Features
Dead simple masked input component for Vue.js 2.X. Based on inputmask-core.
Mobile & Desktop friendly VueJS input component
Features used
CSS variables
Vue’s transition-group
Flexbox
I hope you like them!
#vue-js #vue-input #vue-input-component #input-vue
1600583123
In this article, we are going to list out the most popular websites using Vue JS as their frontend framework.
Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.
This framework was created by Evan You and still it is maintained by his private team members. Vue is of course an open-source framework which is based on MVVM concept (Model-view view-Model) and used extensively in building sublime user-interfaces and also considered a prime choice for developing single-page heavy applications.
Released in February 2014, Vue JS has gained 64,828 stars on Github, making it very popular in recent times.
Evan used Angular JS on many operations while working for Google and integrated many features in Vue to cover the flaws of Angular.
“I figured, what if I could just extract the part that I really liked about Angular and build something really lightweight." - Evan You
#vuejs #vue #vue-with-laravel #vue-top-story #vue-3 #build-vue-frontend #vue-in-laravel #vue.js
1578061020
Icons are the vital element of the user interface of the product enabling successful and effective interaction with it. In this article, I will collect 10 Vue icon component to bring more interactivity, better UI design to your Vue application.
A clean and simple Vue wrapper for SweetAlert’s fantastic status icons. This wrapper is intended for users who are interested in just the icons. For the standard SweetAlert modal with all of its bells and whistles, you should probably use Vue-SweetAlert 2
Demo: https://vue-sweetalert-icons.netlify.com/
Download: https://github.com/JorgenVatle/vue-sweetalert-icons/archive/master.zip
Create 2-state, SVG-powered animated icons.
Demo: https://codesandbox.io/s/6v20q76xwr
Download: https://github.com/kai-oswald/vue-svg-transition/archive/master.zip
Awesome SVG icon component for Vue.js, with built-in Font Awesome icons.
Demo: https://justineo.github.io/vue-awesome/demo/
Download: https://github.com/Justineo/vue-awesome/archive/master.zip
Transitioning Result Icon for Vue.js
A scalable result icon (SVG) that transitions the state change, that is the SVG shape change is transitioned as well as the color. Demonstration can be found here.
A transitioning (color and SVG) result icon (error or success) for Vue.
Demo: https://transitioning-result-icon.dexmo-hq.com/
Download: https://github.com/dexmo007/vue-transitioning-result-icon/archive/master.zip
Easily add Zondicon icons to your vue web project.
Demo: http://www.zondicons.com/icons.html
Download: https://github.com/TerryMooreII/vue-zondicons/archive/master.zip
Vicon is an simple iconfont componenet for vue.
iconfont
iconfont is a Vector Icon Management & Communication Platform made by Alimama MUX.
Download: https://github.com/Lt0/vicon/archive/master.zip
A tool to create svg icon components. (vue 2.x)
Demo: https://mmf-fe.github.io/vue-svgicon/v3/
Download: https://github.com/MMF-FE/vue-svgicon/archive/master.zip
This library is a collection of Vue single-file components to render Material Design Icons, sourced from the MaterialDesign project. It also includes some CSS that helps make the scaling of the icons a little easier.
Demo: https://gitlab.com/robcresswell/vue-material-design-icons
Download: https://gitlab.com/robcresswell/vue-material-design-icons/tree/master
Vue Icon Set Components from Ionic Team
Design Icons, sourced from the Ionicons project.
Demo: https://mazipan.github.io/vue-ionicons/
Download: https://github.com/mazipan/vue-ionicons/archive/master.zip
Dead easy, Google Material Icons for Vue.
This package’s aim is to get icons into your Vue.js project as quick as possible, at the cost of all the bells and whistles.
Demo: https://material.io/resources/icons/?style=baseline
Download: https://github.com/paulcollett/vue-ico/archive/master.zip
I hope you like them!
#vue #vue-icon #icon-component #vue-js #vue-app
1578472348
Vue highlight is often used to highlight text and syntax. Here are the 7 Vue highlight components I’ve collected.
Vue3 Snippets, This extension adds Vue3 Code Snippets into Visual Studio Code.
Vim syntax and indent plugin for vue files
Vue directive for highlight multiple istances of a word.
Beautiful code syntax highlighting as Vue.js component.
A dead simple code editor with syntax highlighting and line numbers. 7kb/gz
Features
A simple port from react-highlight-words
Vue component to highlight words within a larger body of text.
Vue component for highlight multiple istances of a word.
Thank for read!
#vue-highlight #vue #vue-highlight-component #highlight-vue
1578332107
Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown.
The 10 Vue markdown components below will give you a clear view.
Use showdown as a Vue component.
A markdown editor using codemirror and previewer using showdown for Vue.js.
The vue lib for markdown-it.
perfect-markdown is a markdown editor based on Vue & markdown-it. The core is inspired by the implementation of mavonEditor, so perfect-markdown has almost all of the functions of mavonEditor. What’s more, perfect-markdown also extends some features based on mavonEditor.
Vue.js Markdown Editor component.
Markdown to Vue component loader for Webpack.
fo-markdown-note is a Vue.js component that provides a simple Markdown editor that can be included in your Vue.js project.
fo-markdown-note is a thin Vue.js wrapper around the SimpleMDE Markdown editor JavaScript control.
Markdown Editor component for Vue.js. Support both vue1.0 & vue2.0
A nice vue.js markdown editor. Support WYSIWYG editing mode, reading mode and so on.
A Powerful and Highspeed Markdown Parser for Vue.
Thank for read!
#vue-markdown #vue-js #vue-markdown-component #vue