Indicator
Examples
Empty badge as indicator
Badge as indicator
for button
for avatar
for tab
<dv-tabs variant="lifted" modelValue="1">
  <dv-tab-panel name="1">
    <template #title>
      <dv-indicator>
        <dv-indicator-item>
          <dv-badge variant="secondary">1</dv-badge>
        </dv-indicator-item>
        <a>Tiny 1</a>
      </dv-indicator>
    </template>
  </dv-tab-panel>
  <dv-tab-panel name="2" title="Tiny2" />
  <dv-tab-panel name="3" title="Tiny3" />
</dv-tabs>
vuefor an input
A button as an indicator for a card
Job Title
Rerum reiciendis beatae tenetur excepturi
<dv-indicator>
  <dv-indicator-item placement="bottom-end">
    <dv-button variant="primary">Apply</dv-button>
  </dv-indicator-item>
  <dv-card
    class="dv-bgbase100"
    bordered
    title="Job Title"
    description="Rerum reiciendis beatae tenetur excepturi"
  ></dv-card>
</dv-indicator>
vuemultiple indicators
top-start
top-center
top-end
middle-start
middle-center
middle-end
bottom-start
bottom-center
bottom-end
content
import { Badge } from 'daisyui-vue';
export default {
  setup: () => {
    const vs = 'top-middle-bottom'.split('-');
    const hs = 'start-center-end'.split('-');
    const ls = [];
    vs.forEach((v) => {
      hs.forEach((h) => {
        ls.push(v + '-' + h);
      });
    });
    return () => (
      <dv-indicator>
        {ls.map((p) => (
          <dv-indicator-item
            key={p}
            placement={p}
            tag={Badge}
            variant="secondary"
          >
            {p}
          </dv-indicator-item>
        ))}
        <div class="grid w-80 h-32 dv-bgbase300 place-items-center">
          content
        </div>
      </dv-indicator>
    );
  },
};
tsxIndicator
Attributes
| name | description | type | default | 
|---|---|---|---|
| tag | render element | string, object | div | 
IndicatorItem
Attributes
| name | description | type | default | 
|---|---|---|---|
| tag | render element | string, object | div | 
| placement | indicator position | top-start, top-center, top-end, middle-start, middle-center, middle-end, bottom-start, bottom-center, bottom-end | top-end |