Add noPadding prop to Body
This commit is contained in:
parent
7b7ae3396a
commit
c277559a5a
|
@ -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