18 lines
410 B
Svelte
18 lines
410 B
Svelte
<script lang="ts">
|
|
import cx from "classnames"
|
|
import type {Snippet} from "svelte"
|
|
|
|
interface Props {
|
|
tag?: string
|
|
class?: string
|
|
children?: Snippet
|
|
[key: string]: any
|
|
}
|
|
|
|
const {children, tag = "div", ...props}: Props = $props()
|
|
</script>
|
|
|
|
<svelte:element this={tag} {...props} class={cx("flex flex-col overflow-hidden pb-6", props.class)}>
|
|
{@render children?.()}
|
|
</svelte:element>
|