<template>
  <sar-skeleton-block
    :root-class="skeletonTitleClass"
    :root-style="skeletonTitleStyle"
    :animated="animated"
    :round="round"
    :width="width"
    :height="height"
  />
</template>

<script lang="ts">
import { defineComponent as _defineComponent } from "vue";
import { computed } from "vue";
import { classNames, stringifyStyle, createBem } from "../utils";
import SarSkeletonBlock from "../skeleton-block/skeleton-block.vue";
import { skeletonTitleProps } from "../skeleton/common";
const __default__ = {
  options: {
    virtualHost: true,
    styleIsolation: "shared"
  }
};
export default /* @__PURE__ */ _defineComponent({
  ...__default__,
  __name: "skeleton-title",
  props: skeletonTitleProps,
  setup(__props, { expose: __expose }) {
    __expose();
    const props = __props;
    const bem = createBem("skeleton");
    const skeletonTitleClass = computed(() => {
      return classNames(bem.e("title"), props.rootClass);
    });
    const skeletonTitleStyle = computed(() => {
      return stringifyStyle(props.rootStyle);
    });
    const __returned__ = { props, bem, skeletonTitleClass, skeletonTitleStyle, SarSkeletonBlock };
    return __returned__;
  }
});
</script>

<style lang="scss">
@use './index.scss';
</style>