Skip to content

Instantly share code, notes, and snippets.

@serhii-havrylenko
Created October 28, 2018 15:29
Show Gist options
  • Save serhii-havrylenko/85189fa9406b12e9fae2b7500158768e to your computer and use it in GitHub Desktop.
Save serhii-havrylenko/85189fa9406b12e9fae2b7500158768e to your computer and use it in GitHub Desktop.
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