We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34de8ec commit bb924d8Copy full SHA for bb924d8
src/components/DropdownItems.astro
@@ -2,11 +2,11 @@
2
interface Props {
3
class?: string;
4
}
5
-const { class: className } = Astro.props;
+const { class: className, ...rest } = Astro.props;
6
---
7
8
<div
9
- class:list={["astronav-dropdown dropdown-toggle hidden", className]}
+ class:list={["astronav-dropdown dropdown-toggle hidden", className]} {...rest}
10
aria-expanded="false">
11
<slot />
12
</div>
0 commit comments