feat(Alert/CommandPalette/Modal/Slideover/Toast): handle closeIcon and uniformize close prop

This commit is contained in:
Benjamin Canac
2024-06-11 15:48:45 +02:00
parent d160278283
commit e4eef89767
17 changed files with 574 additions and 311 deletions

View File

@@ -54,7 +54,7 @@ const openModal = () => {
<UButton label="Open unclosable" color="gray" />
</UModal>
<UModal title="Modal without close button" description="This modal has `close: null` prop." :close="null">
<UModal title="Modal without close button" description="This modal has `close: false` prop." :close="false">
<UButton label="Open without close button" color="white" />
</UModal>

View File

@@ -102,7 +102,7 @@ const openSlideover = () => {
</template>
</USlideover>
<USlideover title="Slideover without close button" description="This slideover has `close: null` prop." :close="null">
<USlideover title="Slideover without close button" description="This slideover has `close: false` prop." :close="false">
<UButton label="Open without close button" color="white" />
<template #body>