iceshrimp/packages/client/src/pages/page-editor/els/page-editor.el.textarea.vue
2023-04-07 17:01:42 -07:00

50 lines
905 B
Vue

<template>
<XContainer :draggable="true" @remove="() => $emit('remove')">
<template #header
><i class="ph-align-left ph-bold ph-lg"></i>
{{ i18n.ts._pages.blocks.textarea }}</template
>
<section class="ihymsbbe">
<textarea v-model="value.text"></textarea>
</section>
</XContainer>
</template>
<script lang="ts" setup>
import {} from "vue";
import XContainer from "../page-editor.container.vue";
import { i18n } from "@/i18n";
withDefaults(
defineProps<{
value: any;
}>(),
{
value: {
text: "",
},
}
);
</script>
<style lang="scss" scoped>
.ihymsbbe {
> textarea {
display: block;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
width: 100%;
min-width: 100%;
min-height: 150px;
border: none;
box-shadow: none;
padding: 16px;
background: transparent;
color: var(--fg);
font-size: 14px;
box-sizing: border-box;
}
}
</style>