budibase/packages/bbui/src/Typography/Heading.svelte

17 lines
306 B
Svelte
Raw Normal View History

2021-04-14 10:40:44 +02:00
<script>
import "@spectrum-css/typography/dist/index-vars.css"
2021-04-14 10:40:44 +02:00
// Sizes
2021-04-30 13:33:50 +02:00
export let size = "M"
export let textAlign = "left"
export let noPadding = false
2021-04-14 10:40:44 +02:00
</script>
2021-05-18 16:09:04 +02:00
<h1
style="text-align:{textAlign};"
class:noPadding
class="spectrum-Heading spectrum-Heading--size{size}"
>
<slot />
</h1>