Type heading as example TS svelte component
This commit is contained in:
parent
3fa7a23932
commit
ffd2d7bd18
|
@ -2,10 +2,10 @@
|
||||||
import "@spectrum-css/typography/dist/index-vars.css"
|
import "@spectrum-css/typography/dist/index-vars.css"
|
||||||
|
|
||||||
// Sizes
|
// Sizes
|
||||||
export let size = "M"
|
export let size: "XS" | "S" | "M" | "L" = "M"
|
||||||
export let textAlign = undefined
|
export let textAlign: string | undefined = undefined
|
||||||
export let noPadding = false
|
export let noPadding: boolean = false
|
||||||
export let weight = "default" // light, heavy, default
|
export let weight: "light" | "heavy" | "default" = "default"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1
|
<h1
|
||||||
|
|
Loading…
Reference in New Issue