Skip to content

Instantly share code, notes, and snippets.

@marr
marr / form.vue
Last active February 27, 2025 19:29
requires dependency not working
<script setup lang="ts">
import { z } from 'zod';
import { DependencyType} from '@/components/ui/auto-form/interface';
const compressorType = z.enum(["Axial", "Centrifugal", "Reciprocating", "Screw"], {
message: "Invalid compressor type",
});
const compressorSealType = z.enum(["RPV", "DSV", "WSV"], {
message: "Invalid compressor seal type",
});
<script setup lang="ts">
import { ComboboxInput, ComboboxVirtualizer, useFilter, type AcceptableInputValue } from 'reka-ui';
import { Check, ChevronDown } from 'lucide-vue-next';
import type { HTMLAttributes } from 'vue';
const { contains } = useFilter({ sensitivity: 'base' });
const {
class: className = '',
items = [],
label = '',