import { componentName } from '../src/components/descope-loader-linear';
import { modeControl, sizeControl } from './commonControls';

const Template = ({ mode, size }) => `
  <descope-loader-linear
    size="${size || ''}"
    mode="${mode || ''}"
  ></descope-loader-linear>
`;

export default {
  component: componentName,
  title: 'descope-loader-linear',
  parameters: {
    panelPosition: 'right',
    controls: { expanded: true },
  },
  argTypes: {
    ...modeControl,
    ...sizeControl,
  },
};

export const Default = Template.bind({});

Default.args = {
  size: 'md',
  mode: 'primary',
};
