Skip to content

Instantly share code, notes, and snippets.

View rhyek's full-sized avatar

Carlos González rhyek

View GitHub Profile
@rhyek
rhyek / vite.config.ts
Last active September 21, 2024 21:00
Next.js 13 App Router file-based routing in Remix (with Vite)
import { existsSync } from 'node:fs';
import path from 'node:path';
import { vitePlugin as remix } from '@remix-run/dev';
import { DefineRoutesFunction } from '@remix-run/dev/dist/config/routes';
import * as glob from 'glob';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
plugins: [
@rhyek
rhyek / phone-input.tsx
Last active July 23, 2025 11:26
Mantine v7 Phone Input with country select
import { useEffect, useRef, useState } from 'react';
import {
useCombobox,
Combobox,
Group,
CheckIcon,
ScrollArea,
InputBase,
ActionIcon,
type InputBaseProps,