Files
medusa-store/packages/admin-ui/ui/src/components/molecules/grid-input/index.tsx
2023-03-13 14:02:20 +01:00

16 lines
519 B
TypeScript

import React from "react"
type GridInputProps = React.InputHTMLAttributes<HTMLInputElement>
const GridInput: React.FC<GridInputProps> = ({ value, ...props }) => {
return (
<input
className="leading-base rounded-rounded inter-small-regular placeholder:text-grey-40 focus-within:shadow-input focus-within:border-violet-60 h-full w-full border border-transparent bg-transparent py-4 px-2 outline-none outline-0 focus-within:border"
value={value}
{...props}
/>
)
}
export default GridInput