Skip to content

feat: Migrate component HeaderTitle to Svelte 5 #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 22, 2025
12 changes: 11 additions & 1 deletion src/lib/components/HeaderTitle.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<h4><slot /></h4>
<script lang="ts">
import type { Snippet } from "svelte";

interface Props {
children: Snippet;
}

let { children }: Props = $props();
</script>

<h4>{@render children()}</h4>

<style lang="scss">
@use "../styles/mixins/text";
Expand Down