mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore: lift components folder
This commit is contained in:
parent
76df51674d
commit
2200b29b92
301 changed files with 57 additions and 76 deletions
16
src/ComposedModal/ModalBody.svelte
Normal file
16
src/ComposedModal/ModalBody.svelte
Normal file
|
@ -0,0 +1,16 @@
|
|||
<script>
|
||||
export let hasForm = false;
|
||||
export let hasScrollingContent = false;
|
||||
</script>
|
||||
|
||||
<div
|
||||
tabindex={hasScrollingContent ? '0' : undefined}
|
||||
role={hasScrollingContent ? 'region' : undefined}
|
||||
class:bx--modal-content={true}
|
||||
class:bx--modal-content--with-form={hasForm}
|
||||
{...$$restProps}>
|
||||
<slot />
|
||||
</div>
|
||||
{#if hasScrollingContent}
|
||||
<div class:bx--modal-content--overflow-indicator={true} />
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue