mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-08-08 19:49:13 +00:00
transfer to PC
This commit is contained in:
11
src/components/Stack.svelte
Normal file
11
src/components/Stack.svelte
Normal file
@@ -0,0 +1,11 @@
|
||||
<script>
|
||||
// Vertical stack helper. Accepts a gap and alignment so pages can tune spacing.
|
||||
export let gap = 'var(--space-3)';
|
||||
export let align = 'stretch';
|
||||
export let className = '';
|
||||
export let as = 'div';
|
||||
</script>
|
||||
|
||||
<svelte:component this={as} class={`stack ${className}`} style={`gap: ${gap}; align-items: ${align};`}>
|
||||
<slot />
|
||||
</svelte:component>
|
||||
Reference in New Issue
Block a user