docs(modal): add "Has scrolling content," "Custom focus" examples (#1334)

* docs(modal): add example "Has scrolling content"

* docs(modal): add "Custom focus" example

* docs: do not open modals initially
This commit is contained in:
metonym 2022-06-02 19:26:26 -07:00 committed by GitHub
commit 1a904dda36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 93 additions and 11 deletions

View file

@ -1,10 +1,14 @@
<script>
import { Modal } from "carbon-components-svelte";
import { Button, Modal } from "carbon-components-svelte";
let open = false;
</script>
<Button on:click="{() => (open = true)}">Create database</Button>
<Modal
size="lg"
open
bind:open
modalHeading="Create database"
primaryButtonText="Confirm"
secondaryButtonText="Cancel"