Add option for text alignment to Body

This commit is contained in:
Andrew Kingston 2021-05-17 17:49:40 +01:00
parent c90463e6a3
commit a26ab57a76
1 changed files with 2 additions and 0 deletions

View File

@ -4,9 +4,11 @@
export let size = "M"
export let serif = false
export let noPadding = false
export let textAlign = "left"
</script>
<p
style="text-align:{textAlign};"
class:noPadding
class="spectrum-Body spectrum-Body--size{size}"
class:spectrum-Body--serif={serif}