2021-05-04 07:29:15 +02:00
|
|
|
<script>
|
2021-05-06 16:33:16 +02:00
|
|
|
import "@spectrum-css/fieldlabel/dist/index-vars.css"
|
|
|
|
|
|
|
|
export let size = "M"
|
2021-05-04 07:29:15 +02:00
|
|
|
</script>
|
|
|
|
|
2021-05-06 16:33:16 +02:00
|
|
|
<label class={`spectrum-FieldLabel spectrum-FieldLabel--size${size}`}>
|
2021-05-04 07:29:15 +02:00
|
|
|
<slot />
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<style>
|
2021-05-06 16:33:16 +02:00
|
|
|
label {
|
|
|
|
padding: 0;
|
|
|
|
white-space: nowrap;
|
2021-05-04 07:29:15 +02:00
|
|
|
}
|
|
|
|
</style>
|