Alert
Examples
alert
alert state: info
alert state: success
alert state: warning
alert state: error
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
name | description | type | default |
---|---|---|---|
type | alert color type | info, success, warning, error | - |
Slots
name | description |
---|---|
default | alert title |
content | alert content |
actions | alert actions |