diff --git a/src/components/ui/Input/Input.stories.tsx b/src/components/ui/Input/Input.stories.tsx new file mode 100644 index 00000000..9f5e7c24 --- /dev/null +++ b/src/components/ui/Input/Input.stories.tsx @@ -0,0 +1,20 @@ +import type { Meta, StoryObj } from '@storybook/react' +import { Input } from './Input' + +const meta = { + title: 'UI/Input', + component: Input, + tags: ['autodocs'], + argTypes: {}, +} satisfies Meta + +export default meta +type Story = StoryObj + +export const Normal: Story = { + args: {}, +} + +export const Disabled: Story = { + args: {}, +} diff --git a/src/components/ui/Input/Input.tsx b/src/components/ui/Input/Input.tsx new file mode 100644 index 00000000..7468c0e5 --- /dev/null +++ b/src/components/ui/Input/Input.tsx @@ -0,0 +1,24 @@ +import * as React from 'react' +import { cn } from '@/utils' + +export interface InputProps + extends React.InputHTMLAttributes {} + +const Input = React.forwardRef( + ({ className, type, ...props }, ref) => { + return ( + + ) + }, +) +Input.displayName = 'Input' + +export { Input } diff --git a/src/components/ui/Input/index.tsx b/src/components/ui/Input/index.tsx new file mode 100644 index 00000000..9789915b --- /dev/null +++ b/src/components/ui/Input/index.tsx @@ -0,0 +1,3 @@ +import { Input } from './Input' + +export default Input