Add noPadding prop to Body
This commit is contained in:
parent
8b300dbd12
commit
a44849c955
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue