Merge pull request 'Input group - Add a new style' (#79) from feature/Input-group into develop
Reviewed-on: http://85.143.176.51:3000/free-land/front-end/pulls/79
This commit is contained in:
commit
bf76f9b7e0
@ -14,7 +14,7 @@ export type Props = {
|
||||
children?: React.ReactNode | React.ReactNode[];
|
||||
} & React.HTMLProps<HTMLDivElement>;
|
||||
|
||||
const Inputgroup = ({ children }: Props) => {
|
||||
const Inputgroup = ({ children, className }: Props) => {
|
||||
const [focused, setFocused] = useState(false);
|
||||
useEffect(() => {}, [focused]);
|
||||
const arrChildren = React.Children.toArray(children);
|
||||
@ -23,7 +23,8 @@ const Inputgroup = ({ children }: Props) => {
|
||||
<div
|
||||
className={classNames(
|
||||
"border border-gray-200 rounded flex items-center p-1 m-4",
|
||||
focused ? "border-gray-900" : "border-gray-300"
|
||||
focused ? "border-gray-900" : "border-gray-300",
|
||||
className
|
||||
)}
|
||||
>
|
||||
{arrChildren.map((e) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user