+
+ Alternate background is useful to get contrast when the card is placed in a container with the same background as the default card background
+
+
+ Card with default background
+
+
+ Card with alternate background
+
+
`
+
+export const AlternateBackground: Story = {
+ render: (args) => ({
+ components: { NeCard, NeButton },
+ setup() {
+ return { args }
+ },
+ template: alternateBackgroundTemplate
+ }),
+ args: {
+ alternateBackground: true
+ }
+}
diff --git a/stories/NeDropdown.stories.ts b/stories/NeDropdown.stories.ts
new file mode 100644
index 0000000..8518641
--- /dev/null
+++ b/stories/NeDropdown.stories.ts
@@ -0,0 +1,116 @@
+// Copyright (C) 2024 Nethesis S.r.l.
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+import type { Meta, StoryObj } from '@storybook/vue3'
+
+import { NeDropdown, NeButton } from '../src/main'
+import { library } from '@fortawesome/fontawesome-svg-core'
+import { faPenToSquare as fasPenToSquare } from '@fortawesome/free-solid-svg-icons'
+import { faFloppyDisk as fasFloppyDisk } from '@fortawesome/free-solid-svg-icons'
+import { faTrashCan as fasTrashCan } from '@fortawesome/free-solid-svg-icons'
+import { faCopy as fasCopy } from '@fortawesome/free-solid-svg-icons'
+import { faChevronDown as fasChevronDown } from '@fortawesome/free-solid-svg-icons'
+import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
+
+library.add(fasPenToSquare)
+library.add(fasFloppyDisk)
+library.add(fasTrashCan)
+library.add(fasCopy)
+library.add(fasChevronDown)
+
+const meta = {
+ title: 'Visual/NeDropdown',
+ component: NeDropdown,
+ tags: ['autodocs'],
+ args: {
+ items: [
+ {
+ id: 'edit',
+ label: 'Edit',
+ icon: 'pen-to-square',
+ iconStyle: 'fas',
+ action: () => {}
+ },
+ {
+ id: 'copy',
+ label: 'Copy',
+ icon: 'copy',
+ iconStyle: 'fas',
+ action: () => {}
+ },
+ {
+ id: 'save',
+ label: 'Save',
+ icon: 'floppy-disk',
+ iconStyle: 'fas',
+ action: () => {},
+ disabled: true
+ },
+ {
+ id: 'divider1'
+ },
+ {
+ id: 'delete',
+ label: 'Delete',
+ icon: 'trash-can',
+ iconStyle: 'fas',
+ danger: true,
+ action: () => {}
+ }
+ ],
+ alignToRight: false,
+ openMenuAriaLabel: 'Open menu'
+ }
+} satisfies Meta