mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
25 lines
466 B
TypeScript
25 lines
466 B
TypeScript
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}
|
|
/>
|
|
);
|