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"
|
2022-01-19 19:33:58 +01:00
|
|
|
import TooltipWrapper from "../Tooltip/TooltipWrapper.svelte"
|
2021-05-06 16:33:16 +02:00
|
|
|
|
|
|
|
export let size = "M"
|
2021-11-12 14:31:55 +01:00
|
|
|
export let tooltip = ""
|
2021-05-04 07:29:15 +02:00
|
|
|
</script>
|
|
|
|
|
2022-01-19 19:33:58 +01:00
|
|
|
<TooltipWrapper {tooltip} {size}>
|
2021-11-12 14:31:55 +01:00
|
|
|
<label for="" class={`spectrum-FieldLabel spectrum-FieldLabel--size${size}`}>
|
|
|
|
<slot />
|
|
|
|
</label>
|
2022-01-19 19:33:58 +01:00
|
|
|
</TooltipWrapper>
|
2021-05-04 07:29:15 +02:00
|
|
|
|
|
|
|
<style>
|
2021-05-06 16:33:16 +02:00
|
|
|
label {
|
|
|
|
padding: 0;
|
|
|
|
white-space: nowrap;
|
2021-05-04 07:29:15 +02:00
|
|
|
}
|
|
|
|
</style>
|