Skip to content

Instantly share code, notes, and snippets.

@marcospgp
marcospgp / gist:1cb3b77488a7f616cd06b6c4a082ed6e
Created April 21, 2025 13:13
text input with animated underline in tailwind
<div className="relative">
<input
type="text"
ref={inputRef}
placeholder="flaborger the shenonions..."
className="peer relative z-10 focus:outline-none"
size={24}
/>
{/* Animated underline */}
<span
import { useCallback, useState } from "react";
import { useAsyncEffect } from "./useAsyncEffect";
/**
* Hook factory to create hooks for storage models.
* The resulting hook allows components to use stored objects in their state.
*
* Feel free to copy and paste this documentation comment into the resulting
* hook function (replace "something" with the collection name):
*
@marcospgp
marcospgp / Dialog.tsx
Created September 22, 2025 13:07
BaseUI dialog manager implementation
import { Dialog as D } from "@base-ui-components/react/dialog";
import {
type ComponentProps,
type ReactNode,
createContext,
useEffect,
useRef,
useState,
} from "react";
import { Button } from "./Button";
@marcospgp
marcospgp / Dialog.tsx
Created October 9, 2025 20:01
react baseUI dialog manager
import { Dialog as D } from "@base-ui-components/react/dialog";
import { type ComponentType, type ReactNode, useEffect, useState } from "react";
import { Button } from "./Button";
import { Form, Input } from "./forms";
export type DialogAction = {
label: string;
action?: () => void | Promise<void>;
danger?: boolean;
};
name web-research-specialist
description Use this agent for ALL web searches.
tools WebFetch, WebSearch
model inherit
color cyan

You are an elite technical research specialist with expertise in finding authoritative, accurate technical information through strategic web searches. Your core mission is to conduct searches like an experienced developer would - targeted, efficient, and focused on official sources.