import { Meta } from "@storybook/react";
import { ToolbarSpacerProps } from "./ToolbarSpacerProps";
import ToolbarSpacer from "./ToolbarSpacer";

export default {
  title: "Design System/Buttons/Toolbar/ToolbarSpacer",
  component: ToolbarSpacer,
  tags: ["autodocs"],
  parameters: {
    docs: {
      description: {
        component:
          'Represents the props of KendoReact ToolbarSpacer component. \n\n```javascript\nimport { ToolbarSpacer } from "@renault-ui-library"\n```',
      },
    },
  },
  argTypes: {
    dataTestId: {
      control: { type: "text" },
      description: "Specifies the data-test-id attribute for testing purposes.",
    },
    className: {
      control: { type: "text" },
      description: "Sets the `className` of the ToolbarSpacer.",
    },
  },
} as Meta;

export const Default = (args: ToolbarSpacerProps): JSX.Element => (
  <ToolbarSpacer {...args} />
);

Default.args = {
  dataTestId: "toolbar-spacer-data-testid",
  className: "",
};
