Replace final usage of legacy modal (#6921)

* Replace final usage of legacy modal

* prepr
This commit is contained in:
Prospector
2026-07-29 12:42:59 +00:00
committed by GitHub
parent 20235b7d32
commit cc804625ec
34 changed files with 38 additions and 638 deletions
+4 -4
View File
@@ -153,9 +153,9 @@ For components that need user interaction to show:
```typescript
export const Default: Story = {
render: () => ({
components: { Modal, ButtonStyled },
components: { NewModal, ButtonStyled },
setup() {
const modalRef = ref<InstanceType<typeof Modal> | null>(null)
const modalRef = ref<InstanceType<typeof NewModal> | null>(null)
return { modalRef }
},
template: /* html */ `
@@ -163,9 +163,9 @@ export const Default: Story = {
<ButtonStyled @click="modalRef?.show()">
<button>Open Modal</button>
</ButtonStyled>
<Modal ref="modalRef" header="Example Modal">
<NewModal ref="modalRef" header="Example Modal">
<p>Modal content</p>
</Modal>
</NewModal>
</div>
`,
}),