update(docs): split features into separate files

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 4e8b03d059
commit 6cb13f1646
5 changed files with 181 additions and 271 deletions
@@ -1,14 +1,15 @@
<script lang="ts" setup>
import { Handle, NodeProps, Position } from '@braks/vue-flow'
import { Handle, NodeProps, Position } from "@braks/vue-flow";
interface RBGOutputNodeProps extends NodeProps {
rgb: string
rgb: string;
}
const props = defineProps<RBGOutputNodeProps>()
const emit = defineEmits(['next'])
const next = () => emit('next')
const props = defineProps<RBGOutputNodeProps>();
</script>
<template>
<div :style="{ backgroundColor: props.rgb }" class="px-6 py-2 rounded-xl text-white text-center" @click="next">
<div :style="{ backgroundColor: props.rgb }"
class="px-6 py-2 rounded-xl text-white text-center min-w-[220px] border-2 border-white">
<div class="text-xl font-bold">Color Output</div>
<div class="font-semibold">{{ props.rgb }}</div>
<Handle type="target" :position="Position.Left" />