feat(ui): default spacing for alert actions

This commit is contained in:
ArneBo 2025-04-15 13:47:18 +02:00
parent c56d0edd2b
commit 00e5c4dc14
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,8 @@
import { type PastelProps, color } from '~/composables/color'
import { type AlignmentProps, align } from '~/composables/alignment'
import Layout from '~/components/ui/Layout.vue'
export type Props = PastelProps & AlignmentProps
const props = defineProps<Props>()
@ -19,12 +21,13 @@ const props = defineProps<Props>()
>
<slot />
<div
<Layout
v-if="$slots.actions"
flex
class="actions"
>
<slot name="actions" />
</div>
</Layout>
</div>
</template>