15 lines
348 B
Svelte
15 lines
348 B
Svelte
<script lang="ts">
|
|
import type { ContainerWidth } from '../@types/global';
|
|
|
|
/** Width of the component within the text well. */
|
|
export let width: ContainerWidth | null = null;
|
|
import Block from '../Block/Block.svelte';
|
|
</script>
|
|
|
|
{#if width}
|
|
<Block width="{width}" class="fmx-auto fmy-0">
|
|
<slot />
|
|
</Block>
|
|
{:else}
|
|
<slot />
|
|
{/if}
|