UNPKG

@inkline/inkline

Version:

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

54 lines 1.38 kB
import { defineComponent } from 'vue'; import { defaultPropValue, colorVariantClass, sizePropValidator } from '../../mixins/index.mjs'; /** * Slot for default list group content * @name default * @kind slot */ const componentName = 'IListGroup'; export default defineComponent({ name: componentName, props: { /** * Display the list group border * @type Boolean * @default true * @name border */ border: { type: Boolean, default: true }, /** * The color variant of the list group * @type light | dark * @default light * @name color */ color: { type: String, default: defaultPropValue(componentName, 'color') }, /** * The size variant of the list group * @type sm | md | lg * @default md * @name size */ size: { type: String, default: defaultPropValue(componentName, 'size'), validator: sizePropValidator } }, computed: { classes() { return { ...colorVariantClass(this), [`-${this.size}`]: Boolean(this.size), '-border': this.border }; } } }); //# sourceMappingURL=script.mjs.map