UNPKG

@inkline/inkline

Version:

Inkline is the Vue.js UI/UX Library built for creating your next design system

42 lines 1.06 kB
import { defineComponent } from 'vue'; import { colorVariantClass, defaultPropValue } from '../../mixins/index.mjs'; /** * Slot for default loader content * @name default * @kind slot */ const componentName = 'ILoader'; export default defineComponent({ name: componentName, props: { /** * The color variant of the loader * @type primary | light | dark * @default light * @name color */ color: { type: String, default: defaultPropValue(componentName, 'color') }, /** * The size variant of the loader * @type sm | md | lg | auto * @default md * @name size */ size: { type: String, default: defaultPropValue(componentName, 'size') } }, computed: { classes() { return { ...colorVariantClass(this), [`-${this.size}`]: Boolean(this.size) }; } } }); //# sourceMappingURL=script.mjs.map