Status icon ​

WStatusIcon shows whether something is filled in: a check with hasValue, an exclamation mark with hasError, and a dimmed slash with neither. WTabs use it with statusIcon to mark the tabs that are done or have errors. Size it with square-*.

Not set Done Failed
vue
<template>
  <div class="flex flex-wrap items-center gap-4 [&_svg]:square-5">
    <span class="flex items-center gap-2"><WStatusIcon /> Not set</span>
    <span class="flex items-center gap-2"><WStatusIcon has-value /> Done</span>
    <span class="flex items-center gap-2"><WStatusIcon has-error /> Failed</span>
  </div>
</template>

<script lang="ts" setup>
import WStatusIcon from 'eco-vue-js/dist/components/Status/WStatusIcon.vue'
</script>

API ​

WStatusIcon ​

ts
import WStatusIcon from 'eco-vue-js/dist/components/Status/WStatusIcon.vue'

Props ​

PropTypeDefaultDescription
hasValueboolean—Shows a green check.
hasErrorboolean—Shows a red exclamation mark, over hasValue.