Files
nimbus/resources/js/components/base/command/AppCommandList.vue
Mazen Touati 35b96042f0 refactor: solidify the FE codebase and improve UI consistency (#45)
* chore: add storybook

* chore: unify FE codeabse

* chore: update eslint rules

* chore: harmonize the use of "subtle" color

* chore: remove an extra sidebar rail

* refactor: make panel items more consistent

* chore: cleanups after merging new code from base

* refactor: refine composables

* fix: add lost import

* chore: make icon style consistent

* fix: don't show empty "supported" methods

* refactor: solidify select items
2026-01-25 14:30:07 +01:00

44 lines
1003 B
Vue

<script setup lang="ts">
/**
* @component AppCommandList
* @description Scrollable container for command items.
*/
import { cn } from '@/utils/ui';
import { reactiveOmit } from '@vueuse/core';
import type { ListboxContentProps } from 'reka-ui';
import { ListboxContent, useForwardProps } from 'reka-ui';
import type { HTMLAttributes } from 'vue';
/*
* Types & Interfaces.
*/
export interface AppCommandListProps extends ListboxContentProps {
class?: HTMLAttributes['class'];
}
/*
* Component Setup.
*/
const props = defineProps<AppCommandListProps>();
const delegatedProps = reactiveOmit(props, 'class');
const forwarded = useForwardProps(delegatedProps);
</script>
<template>
<ListboxContent
data-slot="command-list"
v-bind="forwarded"
:class="
cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', props.class)
"
>
<div role="presentation">
<slot />
</div>
</ListboxContent>
</template>