diff --git a/src/runtime/components/elements/Dropdown.vue b/src/runtime/components/elements/Dropdown.vue index e33de4cd..73d1a615 100644 --- a/src/runtime/components/elements/Dropdown.vue +++ b/src/runtime/components/elements/Dropdown.vue @@ -9,7 +9,7 @@
-
+
@@ -94,6 +94,10 @@ const props = defineProps({ type: Object, default: () => $ui.dropdown.transition }, + groupClass: { + type: String, + default: () => $ui.dropdown.group + }, itemBaseClass: { type: String, default: () => $ui.dropdown.item.base diff --git a/src/runtime/presets/default.ts b/src/runtime/presets/default.ts index bec25e5b..3a00f90e 100644 --- a/src/runtime/presets/default.ts +++ b/src/runtime/presets/default.ts @@ -340,6 +340,7 @@ export default (variantColors: string[]) => { container: 'z-20', width: 'w-48', base: 'u-bg-white divide-y u-divide-gray-100 rounded-md ring-1 u-ring-gray-200 shadow-lg', + group: 'py-1', item: { base: 'group flex items-center gap-3 px-4 py-2 text-sm w-full', active: 'u-bg-gray-100 u-text-gray-900',