import { Meta, StoryObj } from '@storybook/react';
import { createGroups } from '../../../helpers/storybook';
import { LinkField } from './LinkField';

const groups = createGroups({
  Behavior: ['inlineMode', 'id'],
  Content: ['label', 'tooltipContent', 'value', 'url', 'download'],
  Styling: ['className'],
});

const meta: Meta<typeof LinkField> = {
  title: 'Primary Components/Form Elements/LinkField',
  component: LinkField,
  argTypes: {
    ...groups,
  },
};
export default meta;

export const Main: StoryObj<typeof LinkField> = {
  args: {
    url: '#',
    value: 'Axinom',
    label: 'Test',
  },
};
