Skip to content

Instantly share code, notes, and snippets.

View owonwo's full-sized avatar

Joseph Owonvwon owonwo

View GitHub Profile
@owonwo
owonwo / debug-click.tsx
Last active September 20, 2025 19:55
DebugClick Component for React
// ensure to install @radix-ui/react-slot as it's important for trickling props to child component.
import { Slot } from "@radix-ui/react-slot"
/**
* @description - Logs input to the console for debugging. Hold SHIFT and Click
* @param props
* @returns
*/
export function DebugClick(props: {
disabled?: boolean
@owonwo
owonwo / form-builder-component.tsx
Last active June 15, 2023 11:32
A snippet of my Form Builder component
import React, { useCallback } from "react";
import * as R from "ramda";
import styled from "@emotion/styled";
import { useFormContext } from "react-hook-form";
import {
DateTimePickerControl,
InputWrapper,
PasswordField,
RHFSelect,
RHFSelectDataSource,