-
-
Save serhii-havrylenko/85189fa9406b12e9fae2b7500158768e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Input } from '@taxi/input'; | |
import * as React from 'react'; | |
import styled from 'styled-components'; | |
const Wrapper = styled.div` | |
display: flex; | |
flex-direction: column; | |
margin: 10px; | |
`; | |
const ButtonsWrapper = styled.div` | |
text-align: right; | |
`; | |
export interface LoginFormProps { | |
onClick?: () => void; | |
} | |
export const LoginForm: React.SFC<LoginFormProps> = ({ onClick }) => ( | |
<Wrapper> | |
<Input id="name" label="Name" /> | |
<Input id="password" label="Password" /> | |
<ButtonsWrapper> | |
<button onClick={onClick}>Log in</button> | |
</ButtonsWrapper> | |
</Wrapper> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment