-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5f0f1e
commit 07bd8f9
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export interface InputStyling { | ||
$width?: string; | ||
$isValid?: boolean; | ||
$void?: boolean; | ||
$resize?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ComponentPropsWithRef } from 'react'; | ||
|
||
import type { InputStyling } from './Input.styled'; | ||
|
||
export interface InputProps extends ComponentPropsWithRef<'input'> { | ||
styles: InputStyling; | ||
} | ||
|
||
function Input({ styles }: InputProps) { | ||
const Tag = 'input'; | ||
|
||
return ( | ||
<div> | ||
<Tag /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import Input from '@/components/Common/Input/Input'; | ||
|
||
const meta: Meta<typeof Input> = { | ||
title: 'Common/Input', | ||
component: Input, | ||
tags: ['autodocs'], | ||
args: { | ||
styles: {}, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = {}; |