This commit is contained in:
Belén Curcio
2018-07-30 06:30:11 -03:00
parent d7c3796c9f
commit 2aa725d61c
14 changed files with 52 additions and 59 deletions
@@ -1,3 +1,5 @@
// TODO: (bc) move this to typograhpy!
.root {
font-family: "Source Sans Pro";
font-weight: 400;
@@ -1 +0,0 @@
export const root: string;
@@ -3,11 +3,14 @@ import React, { InputHTMLAttributes, StatelessComponent } from "react";
import * as styles from "./TextField.css";
interface InnerProps extends InputHTMLAttributes<HTMLInputElement> {
interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
classes?: typeof styles;
}
const TextField: StatelessComponent<InnerProps> = ({ className, ...rest }) => {
const TextField: StatelessComponent<TextFieldProps> = ({
className,
...rest
}) => {
return <input {...rest} className={cn(styles.root, className)} />;
};