mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
docs(composed-modal): add button to re-open modal
This commit is contained in:
parent
381e8aa4a8
commit
01ee8697da
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
<script>
|
||||
import {
|
||||
Button,
|
||||
ComposedModal,
|
||||
ModalHeader,
|
||||
ModalBody,
|
||||
|
@ -11,7 +12,9 @@
|
|||
let checked = false;
|
||||
</script>
|
||||
|
||||
<ComposedModal bind:open>
|
||||
<Button on:click="{() => (open = true)}">Review changes</Button>
|
||||
|
||||
<ComposedModal bind:open on:submit="{() => (open = false)}">
|
||||
<ModalHeader label="Changes" title="Confirm changes" />
|
||||
<ModalBody hasForm>
|
||||
<Checkbox labelText="I have reviewed the changes" bind:checked />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue