Alert

Examples

alert

<dv-alert class="shadow-lg">
  Lorem ipsum dolor sit amet, consectetur adip!
</dv-alert>
vue

alert state: info

<dv-alert type="info">Lorem ipsum dolor sit amet, consectetur adip!</dv-alert>
vue

alert state: success

<dv-alert type="success">
  Lorem ipsum dolor sit amet, consectetur adip!
</dv-alert>
vue

alert state: warning

<dv-alert type="warning">
  Lorem ipsum dolor sit amet, consectetur adip!
</dv-alert>
vue

alert state: error

<dv-alert type="error">
  Lorem ipsum dolor sit amet, consectetur adip!
</dv-alert>
vue

alert with actions

<dv-alert type="error">
  <template v-slot:default>
    Lorem ipsum dolor sit amet, consectetur adip!
  </template>
  <template v-slot:actions name="actions">
    <dv-button type="ghost" size="sm" class="mr-2">cancel</dv-button>
    <dv-button type="primary" size="sm">apply</dv-button>
  </template>
</dv-alert>
vue

alert

<dv-alert>
  <template v-slot:icon>
    <icon-heart color="#ef3636" />
  </template>
  <template v-slot:default>
    Lorem ipsum dolor sit amet, consectetur adip!
  </template>
  <template v-slot:content>
    Lorem ipsum dolor sit amet, consectetur adip! Lorem ipsum dolor sit amet,
    consectetur adip!Lorem ipsum dolor sit amet, consectetur adip!Lorem ipsum
    dolor sit amet, consectetur adip!Lorem ipsum dolor sit amet, consectetur
    adip!Lorem ipsum dolor sit amet, consectetur adip!
  </template>
  <template v-slot:actions>
    <dv-button type="ghost" size="sm" class="mr-2">
      <icon-ellipsis-horizontal size="1.5em" />
    </dv-button>
  </template>
</dv-alert>
vue

Alert

Attributes

namedescriptiontypedefault
typealert color typeinfo, success, warning, error-

Slots

namedescription
defaultalert title
contentalert content
actionsalert actions