Add noPadding prop to Body

This commit is contained in:
Andrew Kingston 2021-05-06 13:58:23 +01:00
parent 7b7ae3396a
commit c277559a5a
1 changed files with 9 additions and 0 deletions

View File

@ -3,11 +3,20 @@
export let size = "M"
export let serif = false
export let noPadding = false
</script>
<p
class:noPadding
class="spectrum-Body class:spectrum-Body--size{size}"
class:spectrum-Body--serif={serif}
>
<slot />
</p>
<style>
.noPadding {
padding: 0;
margin: 0;
}
</style>