Files
directus/.storybook/raw-value.vue
2020-04-02 21:18:21 -04:00

40 lines
614 B
Vue

<template functional>
<div class="raw-value">
<div class="label">{{ props.label }}</div>
<pre><slot /></pre>
</div>
</template>
<script lang="ts">
import { defineComponent } from '@vue/composition-api';
export default defineComponent({
props: {
label: {
type: String,
default: 'Value:',
},
},
});
</script>
<style scoped>
.raw-value {
margin: 20px 0;
}
.label {
margin-bottom: 4px;
font-weight: 500;
}
pre {
max-width: max-content;
padding: 0.5rem;
color: var(--foreground-normal);
font-family: monospace;
background-color: var(--background-subdued);
border-radius: 8px;
}
</style>