Skip to content

Instantly share code, notes, and snippets.

@J3698
Created June 27, 2019 20:17
Show Gist options
  • Save J3698/d40415f427f3783efe3aee8b121244f7 to your computer and use it in GitHub Desktop.
Save J3698/d40415f427f3783efe3aee8b121244f7 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import styles from './input-box.module.css';
class UrlInput extends Component {
render() {
return(
<div className={styles.shortenOptions}>
<input type="text" placeholder="url to shorten" className={styles.urlInput} tabIndex="1" />
<button className={styles.shortenButton} tabIndex="3">shorten</button>
<br />
<span className={styles.siteName}>urlmem.com/</span>
<span className={styles.customInputSpan}>
<input type="text" placeholder="optional custom url" className={styles.customInput} tabIndex="2" />
</span>
</div>
);
}
}
export default UrlInput;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment