CodePen
codepen.io › juniorthx3 › pen › bGNxjEY
REACT Login Form Page
class App extends React.Component{ render(){ return( <div className="container"> <div className="form-box"> <div className="header-form"> <h4 className="text-primary text-center"><i className="fa fa-user-circle" style={{fontSize:"110px"}}></i></h4> <div className="image"> </div> </div> <div className="body-form"> <form> <div className="input-group mb-3"> <div className="input-group-prepend"> <span className="input-group-text"><i class="fa fa-user"></i></span> </div> <input type="text" className="form-control" placeholder="Username" /> </div> <div className="input-group mb-3"> <div className="i
CodePen
codepen.io › rares-lungescu › pen › KLbMvo
Responsive React Login Form
const App = props => ( <LoginForm /> ); class LoginForm extends React.Component{ render(){ return( <div id="loginform"> <FormHeader title="Login" /> <Form /> <OtherMethods /> </div> ) } } const FormHeader = props => ( <h2 id="headerTitle">{props.title}</h2> ); const Form = props => ( <div> <FormInput description="Username" placeholder="Enter your username" type="text" /> <FormInput description="Password" placeholder="Enter your password" type="password"/> <FormButton title="Log in"/> </div> ); const FormButton = props => ( <div id="button" class="row"> <button>{props.title}</button> </div> );
CodePen
codepen.io › fionnachan › pen › OJVddqN
Login Page Design & React Implementation
}]} > <antd.Input.Password placeholder="Password" /> </antd.Form.Item> <antd.Form.Item name="remember" valuePropName="checked"> <antd.Checkbox>Remember me</antd.Checkbox> </antd.Form.Item> <antd.Form.Item> <antd.Button type="primary" htmlType="submit" className="login-form-button"> LOGIN </antd.Button> </antd.Form.Item> </antd.Form> </div> </div> ); }; ReactDOM.render( <Login/>, document.getElementById('root') );
CodePen
codepen.io › anthonymarkreynolds › pen › qJBazW
React Login Form
const { Component } = React class EntryPage extends Component { constructor(props){ super(props) this.state = { currentView: "signUp" } } changeView = (view) => { this.setState({ currentView: view }) } currentView = () => { switch(this.state.currentView) { case "signUp": return ( <form> <h2>Sign Up!</h2> <fieldset> <legend>Create Account</legend> <ul> <li> <label for="username">Username:</label> <input type="text" id="username" required/> </li> <li> <label for="email">Email:</label> <input type="email" id="email" required/> </li> <li> <label for="password">Password:</label> <input type="passwo
CodePen
codepen.io › AJALACOMFORT › pen › oLpPPR
Sign Up/ Login Form with ReactJS
<Login /> : null} </div> ) } }) var Signup = React.createClass({ render:function(){ return ( <div> <div id="signup"> <input type="text" id="first" placeholder="First Name"/> <input type="text" id="last" placeholder="Last Name"/> <input type="email" id="email" placeholder="Email"/> <input type="password" id="password" placeholder="Password"/> <input type="password" id="confirm" placeholder="Confirm Password"/> <button id="send">Send</button> </div> </div> ) } }) var Login = React.createClass({ render:function(){ return ( <div> <div id="login"> <input type="email" id="email" placeholder="Email"/> <input type="password" id="password" placeholder="Password"/> <button id="send">Send</button> </div> </div> ) } }) ReactDOM.render(<Parent/>,document.getElementById("space"))
CodePen
codepen.io › just_monk › pen › poNLzZV
Fancy react login form
<Alert type="success">Welcome!</Alert> : ''} <div name="email" validate={emailValidate}> <Label> <span>Email</span> <Input value={email} onChange={(e) => setEmail(e.target.value)} /> </Label> </div> <div name="password" validate={passwordValidate}> <Label> <span>Password</span> <Input type="password" value={password} onChange={(e) => setPassword(e.target.value)} /> </Label> </div> <div style={{ marginTop: '10px' }}> <Button type="submit" fullWidth>Log in</Button> </div> </form> </div> <Divider /> <Button fullWidth onClick={redirectToRegistration} color="green" iconLeft={<FaPlusCircle />}>Creat
CodePen
codepen.io › uxjulia › pen › pROPmP
Simple Login Form (React.js) - CodePen
// Example JS object used for CSS styling const styles = { facebookBtn: { backgroundColor: 'rgb(51, 89, 157)' }, form: { textAlign: 'center' } } class Login extends React.Component { handleOnSubmit = (e) => { e.preventDefault(); console.log('Submitted!'); }; render() { return ( <form style={styles.form} onSubmit={this.handleOnSubmit}> <h4>Welcome Back!</h4> <div className='form-group row'> <input className='input' type='text' placeholder='Email'/> </div> <div className='form-group row'> <input className='input' type='password' placeholder='Password'/> </div> <div className='form-group row'> <b
CodePen
codepen.io › matthewvincent › pen › JXOKbY
login / sign up - React - Daily UI #001
{" "} <a href="#" onClick={inUpClick}>Sign Up Here</a> </p> </div> ); const LoginLink = ({inUpClick}) => ( <div className="signup-link"> <p className="in-out"> Already have an account? {" "} <a href="#" onClick={inUpClick}>Log In Here</a> </p> </div> ); ReactDOM.render( <LoginWrapper />, document.getElementById('login-signup') );
CodePen
codepen.io › Mareken › pen › wvwzgpp
[React] Sign up / Login form
function Form ({ option }) { return ( <form className='account-form' onSubmit={(evt) => evt.preventDefault()}> <div className={'account-form-fields ' + (option === 1 ? 'sign-in' : (option === 2 ? 'sign-up' : 'forgot')) }> <input id='email' name='email' type='email' placeholder='E-mail' required /> <input id='password' name='password' type='password' placeholder='Password' required={option === 1 || option === 2 ? true : false} disabled={option === 3 ? true : false} /> <input id='repeat-password' name='repeat-password' type='password' placeholder='Repeat password' required={option === 2 ? true :
CodePen
codepen.io › wmdmark › pen › qNJQQQ
Simple React Login Form
const Welcome = ({user, onSignOut})=> { // This is a dumb "stateless" component return ( <div> Welcome <strong>{user.username}</strong>! <a href="javascript:;" onClick={onSignOut}>Sign out</a> </div> ) } class LoginForm extends React.Component { // Using a class based component here because we're accessing DOM refs handleSignIn(e) { e.preventDefault() let username = this.refs.username.value let password = this.refs.password.value this.props.onSignIn(username, password) } render() { return ( <form onSubmit={this.handleSignIn.bind(this)}> <h3>Sign in</h3> <input type="text" ref="username" placeh
CodePen
codepen.io › jcar787 › pen › PmLxGW
React Login Form Example
class Header extends React.Component { constructor(props) { super(props) } render() { return ( <div> <h1>{this.props.text}</h1> </div> ) } } class Footer extends React.Component { constructor(props) { super(props) } render() { return <div><h3>{this.props.text}</h3></div> } } class Input extends React.Component { constructor(props) { super(props) this.state = { inputVal: "" } this.changeHandler = this.changeHandler.bind(this) } changeHandler(e) { this.props.parentFunction(e.target.value) } render() { return ( <div> <label>{this.props.labelName}</label> <input type={this.props.inputType} id={thi
CodePen
codepen.io › juniorthx3 › embed › bGNxjEY
CodePen Embed - REACT Login Form Page
class App extends React.Component{ render(){ return( <div className="container"> <div className="form-box"> <div className="header-form"> <h4 className="text-primary text-center"><i className="fa fa-user-circle" style={{fontSize:"110px"}}></i></h4> <div className="image"> </div> </div> <div className="body-form"> <form> <div className="input-group mb-3"> <div className="input-group-prepend"> <span className="input-group-text"><i class="fa fa-user"></i></span> </div> <input type="text" className="form-control" placeholder="Username" /> </div> <div className="input-group mb-3"> <div className="i
CodePen
codepen.io › ciphertron › pen › bGexvbB
React Login/Signup Page
{" "} <a href="#" onClick={inUpClick}>Sign Up Here</a> </p> </div> ); const LoginLink = ({inUpClick}) => ( <div className="signup-link"> <p className="in-out"> Already have an account? {" "} <a href="#" onClick={inUpClick}>Log In Here</a> </p> </div> ); ReactDOM.render( <LoginWrapper />, document.getElementById('login-signup') );
CodePen
codepen.io › stormcloud266 › pen › PBaJvd
React Login UI
class App extends React.Component { render() { return ( <div className="App"> <div className="input-container"> <input type="text" placeholder="Username"/> <i class="zmdi zmdi-account zmdi-hc-lg"></i> </div> <div className="input-container"> <input type="password" placeholder="Password"/> <i class="zmdi zmdi-lock zmdi-hc-lg"></i> </div> <button type="submit">Log In</button> </div> ) } } ReactDOM.render(<App />, document.getElementById('app'));
CodePen
codepen.io › louissam › pen › GBGKoM
Daily UI #001 - React Login Form with Validation
class App extends React.Component{ render(){ return( <div> <Form /> </div> ) } } class Form extends React.Component{ constructor(){ super() this.state ={ inputErrors: false } } handleChange = (event) =>{ const passwordRegex = new RegExp('^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$'); this.setState({inputErrors: !event.target.value.match(passwordRegex)}); } render(){ return( <form className="m-login-form"> <h3>Login</h3> <input type="text" placeholder="Username"/> <input onChange={this.handleChange} type="password" placeholder="Password"/> <span className={this.state.inputErrors == true ?
CodePen
codepen.io › mihaelnikic › pen › roMrgw
React login UI example
class Login extends React.Component { constructor(props){ super(props); this.state = {permission: 0}; this.login = { username:{ value: "", handleChange :(event) => { this.login.username.value = event.target.value; } }, password:{ value: "", handleChange :(event) => { this.login.password.value = event.target.value; } }, login: { loginHandle : () => { if (this.login.username.value && this.login.password.value.length >= 3){ this.setState({permission: 1, error: 0}); } else { this.setState({permission: 0, error: 1}); } } }, logout: { logoutHandle : () => { this.login.username.value = ""; this.login
CodePen
codepen.io › naturalclar › pen › JyVLPM
react login form dark material design
/* Sidebar.jsx */ /* App.jsx */ class App extends React.Component { render() { return ( <div className='form'> <div className='form_logo'> Lo<span>g</span>o </div> <div className='form_title'> Log<span>I</span>n </div> <form className='form_items'> <div className='form_inputs'> <input type='text' required /> <label>username or email</label> </div> <div className='form_inputs'> <input type='password' required /> <label>password</label> </div> <button className='form_button'>Log In</button> </form> <div className='form_other'> <a href='#'>forgot password?</a> <a href='#'>Join Now</a> </div> </div> ); } } /* main.js */ class Main extends React.Component{ render(){ return ( <div> <App /> </div> ); } }; ReactDOM.render( <Main />, document.querySelector('#root') );
CodePen
codepen.io › silentmegh › pen › wvMExBp
ReactJS Bootstrap Login Page
ReactDOM.render( <div> <form class="form-signin"> <h1 class="h3 mb-3 font-weight-normal">Please sign in</h1> <label for="inputEmail" class="sr-only">Email address</label> <input type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus /> <label for="inputPassword" class="sr-only">Password</label> <input type="password" id="inputPassword" class="form-control" placeholder="Password" required /> <div class="checkbox mb-3"> <label> <input type="checkbox" value="remember-me" /> Remember me </label> </div> <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button> <p class="mt-5 mb-0 text-muted">© 2017-2020</p> <p class="mb-3 text-muted">- Meghanandan</p> </form> </div>, document.getElementById('root') );
CodePen
codepen.io › asatraitis › pen › KoXOoK
Animating Login/Register form transition in React
0 : -250}px, 0px)`}} className="button-div"> <p>{this.state.form === 'login' ? 'Do not have an account?' : 'Already a member?'}</p> <button onClick={() => {this.setState({form: this.toggle[this.state.form]})}}>{this.toggle[this.state.form]}</button> </div> </div> ); } } ReactDOM.render(<App />, document.querySelector("#root"));