@isoftdata/svelte-context-menu 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Svelte ContextMenu
2
-
2
+ ![Screenshot of the attachment component](conMen.png?raw=true "Screenshot")
3
3
  A Context/Dropdown menu component, filled with [DropdownItem](DropdownItem.md)s and [DropdownCheckboxItem](DropdownCheckboxItem.md)s
4
4
 
5
5
  ## Install
@@ -11,6 +11,8 @@
11
11
  let {
12
12
  //
13
13
  icon,
14
+ class: classNames,
15
+
14
16
  children,
15
17
  ...rest
16
18
  }: Props = $props()
@@ -19,9 +21,9 @@
19
21
  </script>
20
22
 
21
23
  <button
22
- class="dropdown-item"
23
- type="button"
24
24
  {...rest}
25
+ class={['dropdown-item', classNames]}
26
+ type="button"
25
27
  >{#if icon}<span class="mr-1 me-1"
26
28
  ><Icon
27
29
  fixedWidth
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/svelte-context-menu",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",