1
0
Fork 0
mirror of synced 2024-06-27 18:40:42 +12:00
budibase/packages/standard-components/src/Text.svelte
2021-02-23 10:04:07 +00:00

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>