Skip to content

Commit

Permalink
PR-02: Add Input Story (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
manhphim committed May 6, 2024
1 parent 395eaa2 commit fdf0adb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions packages/ui/src/stories/input.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import type { Meta, StoryObj } from '@storybook/react';

import { Input } from '../input';

const meta = {
title: 'Coderum/Input',
component: Input,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
argTypes: {},
args: {},
} satisfies Meta<typeof Input>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
args: {
placeholder: 'Type something...',
},
};

export const Disabled: Story = {
args: {
disabled: true,
placeholder: 'Type something...',
},
};

export const WithValue: Story = {
args: {
value: 'Hello, world!',
},
};

0 comments on commit fdf0adb

Please sign in to comment.