mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 00:40:34 +01:00
chore(playground): compodium setup
This commit is contained in:
57
playground/compodium/examples/UAlert/UAlertExampleAction.vue
Normal file
57
playground/compodium/examples/UAlert/UAlertExampleAction.vue
Normal file
@@ -0,0 +1,57 @@
|
||||
<script setup lang="ts">
|
||||
extendCompodiumMeta({
|
||||
combo: ['variant'],
|
||||
defaultProps: {
|
||||
icon: 'i-lucide-terminal',
|
||||
title: 'Heads up!',
|
||||
description: 'You can change the primary color in your app config.',
|
||||
close: true,
|
||||
actions: [
|
||||
|
||||
{
|
||||
label: 'Action',
|
||||
onClick() {
|
||||
console.log('Action clicked')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Another action',
|
||||
color: 'warning',
|
||||
onClick() {
|
||||
console.log('Another action clicked')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'One more action',
|
||||
color: 'error',
|
||||
onClick() {
|
||||
console.log('One more action clicked')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'And one more',
|
||||
color: 'info',
|
||||
icon: 'i-lucide-info',
|
||||
onClick() {
|
||||
console.log('And one more clicked')
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Last one',
|
||||
color: 'neutral',
|
||||
icon: 'i-lucide-info',
|
||||
onClick() {
|
||||
console.log('Last one clicked')
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
const multipleActions = (color: string) => [
|
||||
]
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UAlert />
|
||||
</template>
|
||||
Reference in New Issue
Block a user