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

18 lines
299 B
Svelte

<script>
import { getContext } from "svelte"
const { styleable } = getContext("sdk")
const component = getContext("component")
export let text = ""
</script>
<p use:styleable={$component.styles}>{text}</p>
<style>
p {
display: inline-block;
white-space: pre-wrap;
}
</style>