budibase/packages/standard-components/src/Text.svelte

32 lines
483 B
Svelte
Raw Normal View History

<script>
import {buildStyle} from "./buildStyle";
export let value="";
export let containerClass="";
export let font="";
export let textAlign="";
2019-09-26 06:40:58 +02:00
export let verticalAlign=""
export let color="";
2019-09-26 06:40:58 +02:00
export let display="";
export let _app;
let style="";
$: {
style=buildStyle({
2019-09-26 06:40:58 +02:00
font, verticalAlign, color,
"text-align": textAlign,
"vertical-align": verticalAlign
});
}
</script>
<div class={containerClass}
style={style}>
{value}
</div>