import React, { ReactChild } from 'react';
import { Meta, Story } from '@storybook/react/types-6-0';
import { TextEllipsis, TextEllipsisProps } from '.';

export default {
  title: 'TextEllipsis',
  component: TextEllipsis,
} as Meta;

const Template: Story<TextEllipsisProps> = (args) => <TextEllipsis {...args} />;

export const Default = Template.bind({});
Default.args = {
  children: '12345678901234567890123456789',
  size: 10,
  title: '12345678901234567890123456789',
} as TextEllipsisProps & { children?: ReactChild };
