budibase/packages/bbui/src/Label/Label.svelte

17 lines
265 B
Svelte
Raw Normal View History

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