@meve/ui
Version:
Argon design system components library
47 lines (45 loc) • 845 B
JavaScript
export var typeValidator = function typeValidator(type) {
return ['default', 'primary', 'info', 'success', 'warning', 'error'].includes(type);
};
var sizeValidator = function sizeValidator(size) {
return ['mini', 'normal', 'small', 'large'].includes(size);
};
export var props = {
type: {
type: String,
default: 'default',
validator: typeValidator
},
size: {
type: String,
default: 'normal',
validator: sizeValidator
},
closeable: {
type: Boolean,
default: false
},
closeIconSize: {
type: [String, Number]
},
block: {
type: Boolean,
default: false
},
text: {
type: Boolean,
default: false
},
outline: {
type: Boolean,
default: false
},
readonly: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
}
};