UNPKG

@meve/ui

Version:

Argon design system components library

37 lines 923 B
import { isArray, isNumber, isString } from '../utils/shared'; export var internalSizeValidator = function internalSizeValidator(size) { return ['mini', 'small', 'normal', 'large'].includes(size); }; export var sizeValidator = function sizeValidator(size) { return internalSizeValidator(size) || isArray(size) || isNumber(size) || isString(size); }; export var justifyValidator = function justifyValidator(justify) { return ['start', 'end', 'center', 'space-around', 'space-between'].includes(justify); }; export var props = { align: { type: String }, size: { type: [String, Number, Array], default: 'normal', validator: sizeValidator }, wrap: { type: Boolean, default: true }, direction: { type: String, default: 'row' }, justify: { type: String, default: 'start', validator: justifyValidator }, inline: { type: Boolean, default: false } };