Feat(Contacts | Components): Contact modal | Input compoent | New dependency

This commit is contained in:
chip committed 2020-09-01 21:37:53 +02:00
1 parent 0312d2c4a6
commit dde1bd6931
8 files changed
+245 -72

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import React from "react";
import styled from "styled-components";
const Input = styled("input")`
text-align: center;
padding: 10px;
border: none;
font-size: 20px;
outline: none;
background: transparent;
color: #fff;
margin-bottom: 1em;
border-bottom: 1px solid #fff;
`;
export const TextInput = (props) => (
<Input
placeholder={props.placeholder}
type={props.type}
defaultValue={props.value}
onChange={props.onChange}
/>
);