diff --git a/packages/standard-components/src/Container.svelte b/packages/standard-components/src/Container.svelte index 9936a11ca3..9c7e582c71 100644 --- a/packages/standard-components/src/Container.svelte +++ b/packages/standard-components/src/Container.svelte @@ -4,22 +4,21 @@ const { styleable, transition, builderStore } = getContext("sdk") const component = getContext("component") - export let direction = "column" - export let hAlign = "left" - export let vAlign = "top" - export let size = "shrink" + export let direction + export let hAlign + export let vAlign + export let size let element + + $: directionClass = direction ? `direction-${direction}` : "" + $: hAlignClass = hAlign ? `hAlign-${hAlign}` : "" + $: vAlignClass = vAlign ? `vAlign-${vAlign}` : "" + $: sizeClass = size ? `size-${size}` : ""