import type { Meta, StoryObj } from '@storybook/react'; import React from 'react'; import { DropdownItem } from '../DropdownItem'; import { Avatar } from '../../Avatar'; import { SnapshotContainer } from '../../../test-utils/SnapshotsContainer'; const meta: Meta = { title: 'Navigation/DropdownItem', component: DropdownItem, args: { label: 'Michael Murphy' }, }; export default meta; type Story = StoryObj; export const Default: Story = {}; export const WithDescription: Story = { args: { helpText: 'Growth team', }, }; export const Selected: Story = { args: { isSelected: true, }, }; export const Disabled: Story = { render: (args) => ( // eslint-disable-next-line jsx-a11y/role-supports-aria-props
  • ), }; export const WithPrefix: Story = { args: { prefix: ( ), }, }; export const WithSuffix: Story = { args: { suffix: 24€, }, }; export const WithPrefixSuffixAndDescription: Story = { args: { prefix: ( ), suffix: 24€, helpText: 'Est sapiente voluptatibus dolor est labore. Sit voluptatum et nemo cum saepe tempore. Totam veritatis temporibus officiis non molestias non quia facere.', }, }; export const Snapshot: Story = { parameters: { chromatic: { disableSnapshot: false }, }, render: () => ( ), };