feat: establish private collection selection foundation
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<script setup lang="ts">
|
||||
import { ListboxRoot, ListboxContent, ListboxItem } from "reka-ui";
|
||||
|
||||
// Raw installed-library audit. This deliberately does not consume our adapter.
|
||||
defineOptions({ inheritAttrs: false });
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
modelValue?: string | number | (string | number)[];
|
||||
defaultValue?: string | number | (string | number)[];
|
||||
multiple?: boolean;
|
||||
disabled?: boolean;
|
||||
name?: string;
|
||||
}>(),
|
||||
{ modelValue: undefined, defaultValue: undefined },
|
||||
);
|
||||
const emit = defineEmits<{ "update:modelValue": [value: unknown] }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ListboxRoot
|
||||
v-bind="$attrs"
|
||||
:model-value="modelValue"
|
||||
:default-value="defaultValue"
|
||||
:multiple="multiple"
|
||||
:disabled="disabled"
|
||||
:name="name"
|
||||
@update:model-value="emit('update:modelValue', $event)"
|
||||
>
|
||||
<ListboxContent aria-label="Audit choices">
|
||||
<ListboxItem :value="0">Numeric zero</ListboxItem>
|
||||
<ListboxItem value="0">String zero</ListboxItem>
|
||||
<ListboxItem value="disabled" disabled>Disabled</ListboxItem>
|
||||
</ListboxContent>
|
||||
</ListboxRoot>
|
||||
</template>
|
||||
Reference in New Issue
Block a user