Skip to content

Instantly share code, notes, and snippets.

View Sti2nd's full-sized avatar
🕸️

Stian Jørgensrud Sti2nd

🕸️
View GitHub Profile
@Sti2nd
Sti2nd / settings.json
Last active July 27, 2021 14:44
My Windows Terminal settings.json
// This file was initially generated by Windows Terminal 1.8.1521.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@Sti2nd
Sti2nd / FormField.tsx
Created December 17, 2021 19:55
Example of FormField component
import { HTMLInputTypeAttribute, HTMLAttributes } from "react";
import { Form } from "react-bootstrap";
import { useFormContext } from "react-hook-form";
import { v4 as uuid } from "uuid";
interface IFormField {
/**
* The name attribute on the input field. Will be registered with
* react-hook-form.
*/