Advertisement
Thenlie

Story

Sep 10th, 2023
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import type { Meta, StoryObj } from '@storybook/react';
  2. import { Button } from '../../components';
  3.  
  4. const meta = {
  5.     title: 'Components/Button',
  6.     component: Button,
  7.     tags: ['autodocs'],
  8.     parameters: {
  9.         layout: 'centered',
  10.     },
  11. } satisfies Meta<typeof Button>;
  12.  
  13. export default meta;
  14. type Story = StoryObj<typeof meta>;
  15.  
  16. export const Primary: Story = {
  17.     args: {
  18.         title: 'Submit',
  19.         type: 'submit',
  20.         color: 'secondary',
  21.         loading: false,
  22.         disabled: false,
  23.     },
  24. };
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement