<script>
import { computed, defineComponent } from "vue";
import { useComponentColor, useComponentSize } from "@inkline/inkline/composables";
const componentName = "IBreadcrumb";
export default defineComponent({
  name: componentName,
  inheritAttrs: false,
  props: {
    /**
     * The aria-label of the breadcrumbs
     * @type String
     * @default Breadcrumbs
     * @name ariaLabel
     */
    ariaLabel: {
      type: String,
      default: "Breadcrumbs"
    },
    /**
     * The color variant of the breadcrumb
     * @type light | dark
     * @default
     * @name color
     */
    color: {
      type: String,
      default: void 0
    },
    /**
     * The size variant of the breadcrumb
     * @type sm | md | lg
     * @default
     * @name size
     */
    size: {
      type: String,
      default: void 0
    }
  },
  setup(props) {
    const currentColor = computed(() => props.color);
    const currentSize = computed(() => props.size);
    const { color } = useComponentColor({ componentName, currentColor });
    const { size } = useComponentSize({ componentName, currentSize });
    const classes = computed(() => ({
      [`-${color.value}`]: Boolean(color.value),
      [`-${size.value}`]: Boolean(size.value)
    }));
    return {
      classes
    };
  }
});
</script>

<template>
    <nav v-bind="$attrs" class="breadcrumb" :class="classes" :aria-label="ariaLabel">
        <ol>
            <!-- @slot default Slot for default breadcrumb content -->
            <slot />
        </ol>
    </nav>
</template>
