Files
solidtime/resources/js/packages/ui/src/DialogModal.vue
Gregor Vostrak e78a551098 refactor to shadcn components, dynamically load extension frontend
add jetstream permissions, add dynamic inertia module loading, add shadcn components, change modals and dropdowns to shadcn dismissable layer,
2025-04-23 14:33:32 +02:00

48 lines
1.0 KiB
Vue

<script setup lang="ts">
import Modal from './Modal.vue';
const emit = defineEmits(['close']);
defineProps({
show: {
type: Boolean,
default: false,
},
maxWidth: {
type: String,
default: '2xl',
},
closeable: {
type: Boolean,
default: true,
},
});
const close = () => {
emit('close');
};
</script>
<template>
<Modal
:show="show"
:max-width="maxWidth"
:closeable="closeable"
@close="close">
<div class="px-6 py-4">
<div class="text-lg font-medium text-text-primary" role="heading">
<slot name="title" />
</div>
<div class="mt-4 text-sm text-text-secondary">
<slot name="content" />
</div>
</div>
<div
class="flex flex-row justify-end px-6 py-4 border-t border-card-background-separator bg-default-background rounded-b-2xl text-end">
<slot name="footer" />
</div>
</Modal>
</template>