2021-04-14 10:53:23 +02:00
|
|
|
<script>
|
|
|
|
import "@spectrum-css/typography/dist/index-vars.css"
|
|
|
|
|
|
|
|
// Sizes
|
|
|
|
export let xl = false;
|
|
|
|
export let l = false;
|
|
|
|
export let m = false;
|
|
|
|
export let s = false;
|
|
|
|
export let xs = false;
|
2021-04-21 13:21:43 +02:00
|
|
|
$: useDefault = ![xl, l, m, s, xs].includes(true)
|
2021-04-14 10:53:23 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<code class="spectrum-Code"
|
|
|
|
class:spectrum-Code--sizeXL={xl}
|
|
|
|
class:spectrum-Code--sizeL={l}
|
2021-04-21 13:21:43 +02:00
|
|
|
class:spectrum-Code--sizeM={m || useDefault}
|
2021-04-14 10:53:23 +02:00
|
|
|
class:spectrum-Code--sizeS={s}
|
|
|
|
class:spectrum-Code--sizeXS={xs}>
|
|
|
|
<slot />
|
|
|
|
</code>
|