UNPKG

@meve/ui

Version:

Argon design system components library

49 lines (48 loc) 712 B
function fitValidator(fit) { return ['fill', 'contain', 'cover', 'none', 'scale-down'].includes(fit); } export var props = { src: { type: String }, fit: { type: String, validator: fitValidator, default: 'fill' }, alt: { type: String }, width: { type: [String, Number] }, height: { type: [String, Number] }, radius: { type: [String, Number], default: 0 }, loading: { type: String }, error: { type: String }, lazy: { type: Boolean, default: false }, ripple: { type: Boolean, default: false }, block: { type: Boolean, default: true }, previewDisabled: { type: Boolean, default: false } };