Type heading as example TS svelte component

This commit is contained in:
Andrew Kingston 2025-01-17 11:28:21 +00:00
parent 3fa7a23932
commit ffd2d7bd18
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@
import "@spectrum-css/typography/dist/index-vars.css"
// Sizes
export let size = "M"
export let textAlign = undefined
export let noPadding = false
export let weight = "default" // light, heavy, default
export let size: "XS" | "S" | "M" | "L" = "M"
export let textAlign: string | undefined = undefined
export let noPadding: boolean = false
export let weight: "light" | "heavy" | "default" = "default"
</script>
<h1