Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Added size prop to textbox
Browse files Browse the repository at this point in the history
  • Loading branch information
romanslonov committed Apr 18, 2019
1 parent 7744c86 commit 280baf6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Textbox/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ export default {
placeholder: {
type: String,
},
size: {
type: String,
default: '4',
validator(size) {
return ['3', '4'].indexOf(size) > -1;
},
},
tabindex: [String, Number],
multiline: {
type: Boolean,
Expand Down Expand Up @@ -156,6 +163,7 @@ export default {
},
classes() {
return [
`textbox--size-${this.size}`,
{ 'textbox--floated': this.floated },
{ 'textbox--floated-active': this.floated && this.value !== '' },
{ 'textbox--wide': this.wide },
Expand Down

0 comments on commit 280baf6

Please sign in to comment.