Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
507 B · 17 lines
Svelte
at main
123456789101112131415161718<script lang="ts"> import type { Snippet } from 'svelte'; import type { HTMLAttributes } from 'svelte/elements'; import styles from './Stack.module.css';
type Props = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'class'> & { children: Snippet; class?: string; gap?: 'small' | 'medium' | 'large' | 'xl'; };
let { children, class: className, gap = 'medium', ...rest }: Props = $props();</script>
<div class={[styles.stack, styles[gap], className]} {...rest}> {@render children()}</div>