<template>
  <div class="component-item-box">
    <div class="component-item">
      <svg-icon :icon-class="icon" class="icon" />
      <span>{{ name }}</span>
    </div>
  </div>
</template>
<script>
export default {
  name: "ComponentItem",
  props: {
    icon: {
      type: String,
      default: ""
    },

    name: {
      type: String,
      default: ""
    }
  }
};
</script>
<style lang="scss">
.component-item {
  width: 95px;
  height: 28px;
  float: left;
  line-height: 28px;
  text-align: center;
  font-size: 12px;
  background: rgba(235, 245, 255, 1);
  border-radius: 2px;
  color: #3296fa;
  margin-top: 10px;
  cursor: pointer;
}
.component-item:hover {
  background: rgba(208, 231, 255, 1);
}
.icon {
  padding-right: 8px;
}
</style>

