Input group - Add a new style
This commit is contained in:
parent
9cdd859e76
commit
ca39dc42bf
@ -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