first stylings
This commit is contained in:
parent
d6d805e3dd
commit
00c29d39d0
@ -1,21 +1,37 @@
|
||||
import classNames from "classnames";
|
||||
import { omit } from "lodash";
|
||||
import React from "react";
|
||||
import "../index.css";
|
||||
|
||||
type Props = {
|
||||
placeholder?: string | undefined,
|
||||
color?: string |undefined,
|
||||
className?: string | undefined,
|
||||
} & Omit<React.InputHTMLAttributes<HTMLInputElement> ,"">;
|
||||
|
||||
export const TextInput = ({
|
||||
placeholder = undefined,
|
||||
color = "white",
|
||||
className,
|
||||
...props
|
||||
} :Props) => {
|
||||
return(
|
||||
<input type="text" placeholder={placeholder} color={color} className={classNames({className})} />
|
||||
<input
|
||||
type="text"
|
||||
placeholder={placeholder}
|
||||
className={classNames(
|
||||
'w-100',
|
||||
'border',
|
||||
'border-2',
|
||||
'border-solid',
|
||||
'border-gray-200',
|
||||
'text-gray-900',
|
||||
'rounded',
|
||||
'outline-none',
|
||||
'hover:border-gray-300',
|
||||
'focus:border-gray-500',
|
||||
{
|
||||
className
|
||||
})}
|
||||
/>
|
||||
);
|
||||
|
||||
}
|
||||
|
@ -12,6 +12,5 @@ const Template: ComponentStory<typeof TextInput> = (args) => <TextInput {...args
|
||||
export const TextInputStory = Template.bind({});
|
||||
|
||||
TextInputStory.args ={
|
||||
placeholder: "uaaaaaa",
|
||||
color: 'blue'
|
||||
placeholder: "Search",
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user