✨(react) add a temporary TextInput
Even if we haven't started to work on a complete set of inputs we need a generic Input to implement the "goto" feature on the Pagination component. This component is not intended to be used in by the librarie's dependent, so we mark it as "WIP" for the moment.
This commit is contained in:
11
packages/react/src/components/Forms/Input/index.tsx
Normal file
11
packages/react/src/components/Forms/Input/index.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React, { InputHTMLAttributes } from "react";
|
||||
|
||||
type Props = InputHTMLAttributes<HTMLInputElement>;
|
||||
|
||||
export const Input = ({ className, ...props }: Props) => {
|
||||
const classes = ["c__input"];
|
||||
if (className) {
|
||||
classes.push(className);
|
||||
}
|
||||
return <input type="text" className={classes.join(" ")} {...props} />;
|
||||
};
|
||||
Reference in New Issue
Block a user