Skip to content

Instantly share code, notes, and snippets.

View renbesson's full-sized avatar

Ren Besson renbesson

View GitHub Profile
@chadmuro
chadmuro / FileInput.js
Created August 5, 2021 10:52
File Input
import { useState, useEffect } from 'react';
import Button from '@material-ui/core/Button';
import Box from '@material-ui/core/Box';
const FileInput = () => {
const [selectedImage, setSelectedImage] = useState(null);
const [imageUrl, setImageUrl] = useState(null);
useEffect(() => {
if (selectedImage) {
@vinaynb
vinaynb / chromeAutocompleteOverride.css
Created January 5, 2016 10:44
CSS Snippet to override chrome autocomplete styling of input text
/* used to override pale yellow color that chrome uses when user chooses an item from
its autocomplete list */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
transition: background-color 5000s ease-in-out 0s;
}
input:-webkit-autofill {