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 11:04:07 +01:00
<p use:styleable={$component.styles}>{text}</p>
<style>
2021-02-23 11:04:07 +01:00
p {
display: inline-block;
2021-02-23 11:04:07 +01:00
white-space: pre-wrap;
}
</style>