import {Meta, StoryObj} from '@storybook/react';

import {Title} from './index';

const meta: Meta<typeof Title> = {
  title: 'HuGo/Title',
  component: Title,
  argTypes: {
    topText: {control: 'text'},
    title: {control: 'text'},
    description: {control: 'text'},
    size: {control: 'radio', options: ['xl', 'l', 'm', 's', 'xs']},
    center: {control: 'boolean'},
  },
};

type Story = StoryObj<typeof Title>;

export const TitleComponent: Story = {
  args: {
    topText: 'Top text',
    title: 'Title',
    description: 'Description',
    size: 'm',
    center: false,
  },
};

export default meta;
