mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
docs(modal): add example "Has scrolling content"
This commit is contained in:
parent
e62bea38aa
commit
3ef64fb7b3
2 changed files with 24 additions and 1 deletions
|
@ -14,13 +14,19 @@
|
|||
|
||||
<FileSource src="/framed/Modal/PassiveModal" />
|
||||
|
||||
### Has scrolling content
|
||||
|
||||
Setting `hasScrollingContent` to `true` increases the vertical space within the modal.
|
||||
|
||||
<FileSource src="/framed/Modal/ModalScrollingContent" />
|
||||
|
||||
### Multiple modals
|
||||
|
||||
<FileSource src="/framed/Modal/ModalMultiple" />
|
||||
|
||||
### Multiple secondary buttons
|
||||
|
||||
Use the `secondaryButtons` prop to render two secondary buttons for a "3-button modal". The prop is a 2-tuple type that supersedes `secondaryButtonText`.
|
||||
Use the `secondaryButtons` prop to render two secondary buttons. The prop is a 2-tuple type that supersedes `secondaryButtonText`.
|
||||
|
||||
<FileSource src="/framed/Modal/3ButtonModal" />
|
||||
|
||||
|
|
17
docs/src/pages/framed/Modal/ModalScrollingContent.svelte
Normal file
17
docs/src/pages/framed/Modal/ModalScrollingContent.svelte
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script>
|
||||
import { Modal } from "carbon-components-svelte";
|
||||
</script>
|
||||
|
||||
<Modal open passiveModal modalHeading="About Cloudant" hasScrollingContent>
|
||||
<p>
|
||||
Cloudant is a fully managed, distributed database optimized for heavy
|
||||
workloads and fast-growing web and mobile apps, IBM Cloudant is available as
|
||||
an IBM Cloud® service with a 99.99% SLA.
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
The database elastically scales throughput and storage, and its API and
|
||||
replication protocols are compatible with Apache CouchDB for hybrid or
|
||||
multicloud architectures.
|
||||
</p>
|
||||
</Modal>
|
Loading…
Add table
Add a link
Reference in a new issue