1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00
budibase/packages/standard-components/src/Text.svelte

18 lines
299 B
Svelte
Raw Normal View History

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