summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets/links-list-widget.module.scss
Commit message (Expand)AuthorAgeFilesLines
* chore: add a LegalNotice pageArmand Philippot2022-05-031-3/+7
* chore: add a LinksListWidget componentArmand Philippot2022-04-151-0/+71
id='n41' href='#n41'>41 42 43 44
import { ComponentMeta, ComponentStory } from '@storybook/react';
import { IntlProvider } from 'react-intl';
import BackToTopComponent from './back-to-top';

export default {
  title: 'Molecules/Buttons',
  component: BackToTopComponent,
  argTypes: {
    className: {
      control: {
        type: 'text',
      },
      description: 'Set additional classnames to the button wrapper.',
      table: {
        category: 'Styles',
      },
      type: {
        name: 'string',
        required: false,
      },
    },
    target: {
      control: {
        type: 'text',
      },
      description: 'An element id (without hashtag) to use as anchor.',
      type: {
        name: 'string',
        required: true,
      },
    },
  },
} as ComponentMeta<typeof BackToTopComponent>;

const Template: ComponentStory<typeof BackToTopComponent> = (args) => (
  <IntlProvider locale="en">
    <BackToTopComponent {...args} />
  </IntlProvider>
);

export const BackToTop = Template.bind({});
BackToTop.args = {
  target: 'top',
};